Logging off user
From: sergei (sssergei@hotmail.com)
Date: 01/28/03
- Next message: Peter: "Authentication"
- Previous message: David Adams: "FormsAuthentication problem with HttpWebRequest"
- In reply to: Jan Pavel: "Logging off user"
- Next in thread: Himanshu Dhami: "Re: Logging off user"
- Reply: Himanshu Dhami: "Re: Logging off user"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "sergei" <sssergei@hotmail.com> Date: Mon, 27 Jan 2003 21:08:49 -0800
I have created session variable when user login and
on "page_load"(second page)
i am checking
if (Session["YourVariable"] == null)
{
// send the user to login page or ..do something
Server.Transfer("your login page.aspx");
}
>-----Original Message-----
>Hi,
> I have a two WebForms. The first form is login screen.
After user is logged
>in, he is redirected to the second form. (I use Forms
authentication on my
>web so user must first log in to get to the second form).
On the second
>form, I need to set some timeout and when the timeout
expires I want to log
>off user (need to call
System.Web.Security.FormsAuthentication.SignOut()
>method).
>My problem is that I don't know how to check whether
timeout is already
>expired or not. I tried to use a timer component but it
didn't work. Does
>anyone know how to solve this problem ?
>
>
>.
>
- Next message: Peter: "Authentication"
- Previous message: David Adams: "FormsAuthentication problem with HttpWebRequest"
- In reply to: Jan Pavel: "Logging off user"
- Next in thread: Himanshu Dhami: "Re: Logging off user"
- Reply: Himanshu Dhami: "Re: Logging off user"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|