Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Changing Cookie settings
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Changing Cookie settings

 Post Reply Post Reply
Author
Dammas View Drop Down
Newbie
Newbie


Joined: 04 January 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dammas Quote  Post ReplyReply Direct Link To This Post Topic: Changing Cookie settings
    Posted: 04 January 2004 at 2:35pm

Is there a possibilty that I setup the cookie tot sta active for 20 minutes.

Because I want the users stay logged in for just 20 minutes instead 356 days.

And if I knew in which ASP file that is defined I could solve the problem myself.

Well I hope some can help me.

 

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 04 January 2004 at 4:46pm
When they login make the auto login fetaure disabled.

Change the HTML form check box to a hidden field
Back to Top
Dammas View Drop Down
Newbie
Newbie


Joined: 04 January 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dammas Quote  Post ReplyReply Direct Link To This Post Posted: 05 January 2004 at 3:40am

Okeej thank you very much.

But what I also want is to change

Response.Cookies(strCookieName).Expires = DateAdd("yyyy", 1, Now()) to x minutes, but my knowledge of ASP isn't that great so how can I change years into minutes?

I figured that if I changed yyyy into mm or dd that the expire will change from years to months/days but I want minutes or hours.

Is this possible?

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 05 January 2004 at 1:09pm
If you leave that line out and don't set an expirery date then the cookie will be removed after 20 minutes of leaving the site.
Back to Top
Dammas View Drop Down
Newbie
Newbie


Joined: 04 January 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dammas Quote  Post ReplyReply Direct Link To This Post Posted: 06 January 2004 at 9:34am

Ok thank you but is there a possibilty that i can change that into 5 minutes?

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 06 January 2004 at 9:45am
Look up the  DateAdd("yyyy", 1, Now()) function on google there is a why to change the yyyy part to minutes but I can't remeber off hand what to change it to
Back to Top
Dammas View Drop Down
Newbie
Newbie


Joined: 04 January 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dammas Quote  Post ReplyReply Direct Link To This Post Posted: 07 January 2004 at 1:44pm

quote from http://www.jamesrking.com/left_brain/active_server_pages/dat e_and_time.asp

yyyy Year q Quarter
m Month y Day of Year
d Day w Weekday
ww Week of Year h Hour
n Minute s Second

Maybe more people want to change those DateAdd("yyyy", 1, Now()) function

 

 

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.