Unable to retrieve session value in ASP.Net Page
-
Hi Friends.. I am having a login page (.aspx) which is a pop up page..Now i maintain a session in this login page to hold the username in the session..Now i need to retrieve this session in another page which is having 3 iframes..I need the session variable in the 3rd iframe..But when i try to retrieve i am getting "nothing" in the session..Wat might be the problem..? i am developing in .Net 2005 using atlas framework. Regards,
Balaguru
-
Hi Friends.. I am having a login page (.aspx) which is a pop up page..Now i maintain a session in this login page to hold the username in the session..Now i need to retrieve this session in another page which is having 3 iframes..I need the session variable in the 3rd iframe..But when i try to retrieve i am getting "nothing" in the session..Wat might be the problem..? i am developing in .Net 2005 using atlas framework. Regards,
Balaguru
-
Just a general point, but try avoiding pop-up windows, some users browser block this feature. Can you show us the code for the iframes
The following is third iframe in which i call a .aspx page.The code is as follows.. In login page Session value stored : Session("USERID") = gstrUserId In Game Page (3rd Iframe page) session value retrieved : lstrid = CType(Session("USERID"), String) (or) lstrid =Session("USERID") But i am getting "nothing" in lstrid , when i execute this with the help of breakpoint Wat could be the problem.? Thanks & Regards
Balaguru
-
The following is third iframe in which i call a .aspx page.The code is as follows.. In login page Session value stored : Session("USERID") = gstrUserId In Game Page (3rd Iframe page) session value retrieved : lstrid = CType(Session("USERID"), String) (or) lstrid =Session("USERID") But i am getting "nothing" in lstrid , when i execute this with the help of breakpoint Wat could be the problem.? Thanks & Regards
Balaguru
r u using any classes in between i.e. BLL / DAL etc...? this is the only issue with such kind of problems.. other chances may be that somewhere any dynamic class code i sgetting changes...means your are creating some compilable code dyamically... third, may be there is some event which is resetting your session.. {ptu some code in global.asax file for catching session event}
Ashish Sehajpal