Print Page | Close Window

Changing Cookie settings

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=8557
Printed Date: 07 April 2026 at 7:47am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Changing Cookie settings
Posted By: Dammas
Subject: Changing Cookie settings
Date 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.

 




Replies:
Posted By: WebWiz-Bruce
Date 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


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Dammas
Date 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?



Posted By: WebWiz-Bruce
Date 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.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Dammas
Date Posted: 06 January 2004 at 9:34am

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



Posted By: WebWiz-Bruce
Date 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

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Dammas
Date Posted: 07 January 2004 at 1:44pm

quote from http://www.jamesrking.com/left_brain/active_server_pages/date_and_time.asp - 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

 

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net