-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: suj
Message 1 in Discussion


Hi 
guys,
 
I am again getting 
this problem, rather it did not get rectified last time I posted this message on 
the group.
 
I am using session 
varaibles and want to implement session time out 
functionality.
 
My web.config file 
lloks like this - 
 
<sessionState 

            
mode="InProc" 

            
stateConnectionString="tcpip=127.0.0.1:42424"
            
sqlConnectionString="data source=127.0.0.1;user 
id=sa;password="
            
cookieless="true" 

            
timeout="1" 
    />
 
In my code I have 
created 2 webforms.
 
On first page, I 
have created a button that takes me to the second page using 
server.transfer.
 
Webform1.aspx.vb
 
Private Sub 
Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) 
Handles Button1.Click
        
Session("name") = "Sujay"
        
Server.Transfer("WebForm2.aspx")
End 
Sub
 
On the second page I 
am just accessing this session varaible.
 
Now after running 
the webform1.aspx page through IDE, I am waiting for sometime and clicking the 
button. Expected result is it should say Session time out. But it is taking me 
to second page and printing the session variable value. 
 
What should I 
do?
 
Regards,
 
Sujay
 

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to