I suspect it could happen if you define your very first session variable using an Ajax call. Show the SessionID as part of your Ajax call as well as on the ExpenseReport page to show if you have a single or two separate browser sessions.
If confirmed a quick fix could be to define a dummy session variable when ExpenseReport loads.
I test your code and it works on my environment , please confirm that you are setting the session
variable before redirect to that page in same session .
Member
40 Points
158 Posts
HttpContext.Current.Session["COLUMNLIST"] is null
Sep 06, 2018 06:28 AM|shijostephen|LINK
Hi
I have set HttpContext.Current.Session["COLUMNLIST"] to a string value as below from ajax call to webmethod..
Ajax call from another page to the webmethod
But HttpContext.Current.Session["COLUMNLIST"] is null once the page loads after thiis using below code from jquery of another page.
Thanks
Shijo
All-Star
48720 Points
18184 Posts
Re: HttpContext.Current.Session["COLUMNLIST"] is null
Sep 06, 2018 06:48 AM|PatriceSc|LINK
Hi,
I suspect it could happen if you define your very first session variable using an Ajax call. Show the SessionID as part of your Ajax call as well as on the ExpenseReport page to show if you have a single or two separate browser sessions.
If confirmed a quick fix could be to define a dummy session variable when ExpenseReport loads.
Member
40 Points
158 Posts
Re: HttpContext.Current.Session["COLUMNLIST"] is null
Sep 06, 2018 07:17 AM|shijostephen|LINK
I am getting same session ID cuzljyacmf3zutch2cqsqaa1
with below codes
and
Thanks
Shijo
All-Star
18815 Points
3831 Posts
Re: HttpContext.Current.Session["COLUMNLIST"] is null
Sep 07, 2018 03:13 AM|Nan Yu|LINK
Hi shijostephen ,
I test your code and it works on my environment , please confirm that you are setting the session variable before redirect to that page in same session .
Best Regards,
Nan Yu