HttpContext.current.session is null in app_code/.cs file
Hi,
1. SetSession.aspx page sets value for a session variable and redirects to default.aspx page.
2. Default.aspx page tries to create an object of class in app_code\common.cs file.
3. In app_code\Common.cs file, I am trying to access the session variable set in step1 using HttpContext.Current.Session object.
but step 3 gives error that object reference not set to an instance...bla bla..
I surft abt it on net, and seems to be problem with asp.net framework.
Any workaround??
|