473,326 Members | 2,128 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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 1682
> 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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.