473,472 Members | 1,800 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

allow a user to signoff

I need to allow a user to sign off from the admin section of my site. I am
using forms based authentication again a DB.
I have read several articles today... none mention how to do this. I guess
I could force an expiration of the cookie, but there must be a cleaner way.

Anyone know one?

Thanks-
Steve
Nov 18 '05 #1
4 1688
> I could force an expiration of the cookie, but there must be a cleaner
way.

That's the way it is done, setting an expire date in the past - whether
using client side JavaScript or server side ASP.NET code execution.

--
Peter O'Reilly
Nov 18 '05 #2
> I could force an expiration of the cookie, but there must be a cleaner
way.

That's the way it is done, setting an expire date in the past - whether
using client side JavaScript or server side ASP.NET code execution.

--
Peter O'Reilly
Nov 18 '05 #3
Steve,

If you are using FormsAuthentication, you can do
FormsAuthentication.SignOut() and this will destroy the ticket associated
with the user. I put this in an event for a button and then
Response.Redirect(BackToMainPageOrWhereEver) after the SignOut() is called.
In my case, I also do a session.destroy before the Response.Redirect as
well.

HTH,

Raymond Lewallen

"sklett" <as**@fkd.com> wrote in message
news:eG**************@TK2MSFTNGP10.phx.gbl...
I need to allow a user to sign off from the admin section of my site. I am using forms based authentication again a DB.
I have read several articles today... none mention how to do this. I guess I could force an expiration of the cookie, but there must be a cleaner way.
Anyone know one?

Thanks-
Steve

Nov 18 '05 #4
Steve,

If you are using FormsAuthentication, you can do
FormsAuthentication.SignOut() and this will destroy the ticket associated
with the user. I put this in an event for a button and then
Response.Redirect(BackToMainPageOrWhereEver) after the SignOut() is called.
In my case, I also do a session.destroy before the Response.Redirect as
well.

HTH,

Raymond Lewallen

"sklett" <as**@fkd.com> wrote in message
news:eG**************@TK2MSFTNGP10.phx.gbl...
I need to allow a user to sign off from the admin section of my site. I am using forms based authentication again a DB.
I have read several articles today... none mention how to do this. I guess I could force an expiration of the cookie, but there must be a cleaner way.
Anyone know one?

Thanks-
Steve

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Who | last post by:
What is required on the server to publish asp.net and webform apps. on the www? I am assuming IIS, frontpage extensions (not sure about which version). What about database usage. Say I want to use...
2
by: sklett | last post by:
I need to allow a user to sign off from the admin section of my site. I am using forms based authentication again a DB. I have read several articles today... none mention how to do this. I guess...
8
by: Who | last post by:
What is required on the server to publish asp.net and webform apps. on the www? I am assuming IIS, frontpage extensions (not sure about which version). What about database usage. Say I want to use...
2
by: sklett | last post by:
I need to allow a user to sign off from the admin section of my site. I am using forms based authentication again a DB. I have read several articles today... none mention how to do this. I guess...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.