Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Deleting Cookie when ASP Session Expires
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Deleting Cookie when ASP Session Expires

 Post Reply Post Reply
Author
jadam View Drop Down
Newbie
Newbie
Avatar

Joined: 20 March 2005
Location: Windsor, CT USA
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote jadam Quote  Post ReplyReply Direct Link To This Post Topic: Deleting Cookie when ASP Session Expires
    Posted: 29 August 2008 at 8:42pm
I have my website set to timeout at 20 minutes using the Session.Timeout=20 on the main index.asp page.
 
When the user logs into the website they are automatically logged into the forum using the forum API.
 
I've noticed that the ASP session will timeout properly but the user can still access the forum as the cookie is still active.
 
Is it possible to check to see if the session has timed out and force the cookie to delete (and log the user out of the forum)?
 
Something like (psydo code)
 
If Session = unactive Then
response.redirect = "forum-logout.asp"
End IF
 
I have an ASP page that if the user clicks the link "Log Out" it closes the session and runs the code to delete the cookie.
 
 
Thanks,
Joe
Back to Top
shakir View Drop Down
Groupie
Groupie


Joined: 08 November 2007
Location: Saudi Arabia
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote shakir Quote  Post ReplyReply Direct Link To This Post Posted: 10 September 2008 at 10:30am
If Session ("name")= "" or  Session ("name")=null  Then
response.redirect = "forum-logout.asp"
End IF
Back to Top
bapsbps View Drop Down
Newbie
Newbie


Joined: 07 March 2009
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote bapsbps Quote  Post ReplyReply Direct Link To This Post Posted: 07 March 2009 at 1:12pm
In ASP Cookie and Session are two separate thing.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.