| | |
sessions
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
•
•
hi, when session expires i want to give message and send them to my login page.for this where i have to write the code.
thank you
ASP.NET Syntax (Toggle Plain Text)
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If session("UserID").ToString.Trim = "" Then Response.Redirect("Login.aspx") Exit Sub End If End Sub
NEVER NEVER NEVER GIVE UP
ASP.NET Syntax (Toggle Plain Text)
session.abandon(); session.clear(); Response.Redirect("Login.aspx");
Mark the thread as resolved if your problem gets resolved :)
•
•
Join Date: Aug 2009
Posts: 24
Reputation:
Solved Threads: 0
•
•
•
•
how if like this :
ASP.NET Syntax (Toggle Plain Text)
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If session("UserID").ToString.Trim = "" Then Response.Redirect("Login.aspx") Exit Sub End If End Sub
thank you
![]() |
Similar Threads
- PHP Sessions on IIS (PHP)
- vB Sessions/Online list (PHP)
- Need a tutorial on sessions (PHP)
Other Threads in the ASP.NET Forum
- Previous Thread: Object expected Menu error
- Next Thread: UpdatePanel, Radiobutton
| Thread Tools | Search this Thread |
.net 2.0 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn checkbox click commonfunctions compatible confirmationcodegeneration content contenttype courier css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dropdownmenu dynamically edit expose fill flash flv formatdecimal forms formview gridview homeedition iframe iis javascript jquery listbox login menu microsoft mono mouse mssql multistepregistration news numerical objects opera order panelmasterpagebuttoncontrols radio ratings registration reportemail rotatepage save schoolproject search security serializesmo.table silverlight smartcard smoobjects software sql-server sqlserver2005 suse textbox tracking unauthorized validation vb.net video videos virtualdirectory vista visual-studio visualstudio web webapplications webarchitecture webdevelopemnt webprogramming webservice xml xsl youareanotmemberofthedebuggerusers





