|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Session Variables are Empty
<i><b>Originally posted by : Doug Hagerman (DougH@Usbs-Panels.com)</b></i><br /><br />What do you have to do to get session variables to work from page to page.<br /><br />Now, I set a session variable on one page and it is blank not the Redirected Page.<br /><br />I have even tried turning the directories into applications.<br /><br />Using ASP.Net<br /><br />Plese Help.<br /><br />Thanks,<br />Doug<br />
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : </b></i><br /><br />did you declare your session variable in the global.asa file in the root directory?<br /><br />------------<br />Doug Hagerman at 4/22/2002 7:49:47 PM<br /><br /><br />What do you have to do to get session variables to work from page to page.<br /><br />Now, I set a session variable on one page and it is blank not the Redirected Page.<br /><br />I have even tried turning the directories into applications.<br /><br />Using ASP.Net<br /><br />Plese Help.<br /><br />Thanks,<br />Doug<br />
|
|
#3
|
|||
|
|||
|
<i><b>Originally posted by : Doug Hagerman (DougH@Usbs-Panels.com)</b></i><br />Yes, I do declare them if by that you mean...<br /><br /><script Language="vb" runat="server"><br />Sub Session_OnStart()<br /> Session("User_Name")=""<br /> Session("Password")=""<br /> Session("Authorized")=""FALSE""<br />End Sub<br /></script><br /><br /><br />I have found that the following works... When I put the next page Address In the Quote Below<br /><br />Server.Transfer("MyNextWebPage.Aspx")<br /><br />Is there anything else I should be aware of?<br /><br />And also, how do frames affect the Server.Transfer("")? For Example what if you were using an XML Tree Control to allow the user to call web pages. How do you handle session variables in XML?<br /><br />Thanks,<br />Doug<br /><br /><br /><br /><br /><br /><br />------------<br /> at 4/23/2002 7:24:44 AM<br /><br /><br />did you declare your session variable in the global.asa file in the root directory?<br /><br />------------<br />Doug Hagerman at 4/22/2002 7:49:47 PM<br /><br /><br />What do you have to do to get session variables to work from page to page.<br /><br />Now, I set a session variable on one page and it is blank not the Redirected Page.<br /><br />I have even tried turning the directories into applications.<br /><br />Using ASP.Net<br /><br />Plese Help.<br /><br />Thanks,<br />Doug<br />
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > Session Variables are Empty |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|