RE: Logging off user
From: Mike Moore [Microsoft] (michmo@online.microsoft.com)
Date: 01/25/03
- Next message: Nicole Calinoiu: "Re: Log out function in ASP.NET?"
- Previous message: Mike Moore [Microsoft]: "Re: app config file downloading (not) for winform deployment model"
- In reply to: Jan Pavel: "Logging off user"
- Next in thread: sergei: "Logging off user"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: michmo@online.microsoft.com ("Mike Moore [Microsoft]") Date: Sat, 25 Jan 2003 02:34:02 GMT
Hi Jan,
SignOut is not usually used to enforce a timeout. SignOut is a server-side
function while authentication timeouts are usually tracked by the client.
The following article shows a couple ways to set a timeout. One (the most
common) is to specify it in the authentication section of the web.config
file. Another method shown is to create and encrypt your own cookie.
301240 HOW TO: Implement Forms-Based Authentication in Your ASP.NET
Application
http://support.microsoft.com/?id=301240
Does this answer your question?
Thank you, Mike Moore
Microsoft, ASP.NET
This posting is provided "AS IS", with no warranties, and confers no rights.
--------------------
>From: "Jan Pavel" <jan.pavel@xio.cz>
>Subject: Logging off user
>Date: Fri, 24 Jan 2003 01:08:44 +0100
>Lines: 12
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
>Message-ID: <OsKn3yzwCHA.1712@TK2MSFTNGP10>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>NNTP-Posting-Host: kxpavj17.vse.cz 146.102.92.23
>Path: cpmsftngxa06!TK2MSFTNGP08!TK2MSFTNGP10
>Xref: cpmsftngxa06 microsoft.public.dotnet.framework.aspnet.security:3756
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>
>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: Nicole Calinoiu: "Re: Log out function in ASP.NET?"
- Previous message: Mike Moore [Microsoft]: "Re: app config file downloading (not) for winform deployment model"
- In reply to: Jan Pavel: "Logging off user"
- Next in thread: sergei: "Logging off user"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|