473,385 Members | 1,766 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,385 software developers and data experts.

HttpCookie that expires at end of session

Hajo,
Looking at ASP.NET_SessionId in firefox I found that has:
Expires: at end of session and any of my own cookies has
"expires" field set to concrete date and time.
I am not able to set my cookies as "expire at end of session".
Do you know how to do it ?
thanks in advance for info

Gawel
Nov 19 '05 #1
1 2170
Hi Gawel:

The problem is the server does not know when the client closes the
browser and ends thier part of the session. If you are using InProc
session state you want the server side session time out to happen
early and reclaim memory.

I'd consider using SQL Server for session storage if you set the
timeout extremely high.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 21 Feb 2005 11:39:15 +0100, Gawel
<gawelek@SPAM_NO_NON_NOgazeta.pl> wrote:
Hajo,
Looking at ASP.NET_SessionId in firefox I found that has:
Expires: at end of session and any of my own cookies has
"expires" field set to concrete date and time.
I am not able to set my cookies as "expire at end of session".
Do you know how to do it ?
thanks in advance for info

Gawel


Nov 19 '05 #2

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

Similar topics

2
by: prakash | last post by:
Hi All Can anyone explain the difference between Response.Expires & Session.Timeout Regards Prakash
1
by: chris | last post by:
I'm struggling with using the HttpCookie object on a code behind. Used in the page works great I'm getting a: Type 'HttpCookie' is not define I've tried adding the namespace to the vb form but no...
1
by: Jenny | last post by:
Need urgent help for an unsolved problem. In our ASP web application, we creat a Back button and if user click on this button, it execute history.go(-1) to go back to the previous page. All our...
12
by: ACaunter | last post by:
Hi all, I was wondering how i could write some code which would automatically open the Login Page once the session has expired? -- AdamPC@hotmail.com
3
by: ulabala | last post by:
I was trying to retrieve the cookie collection and display the domain to which those cookies were written to, but I always see a NULL value for the domain property. Can anyone shed some light?...
6
by: divya | last post by:
I have a page name edit.asp which should expire immediately .The user cannot open this page directly he has to provide a password for entering this page.thus when the user enters edit.asp , it has...
2
by: Terry Olsen | last post by:
I don't understand the error i'm getting on this page. Is this a bug or am I doing something wrong? Exception Details: System.InvalidCastException: Unable to cast object of type...
1
by: John Grandy | last post by:
If you don't set the HttpCookie.Expires property does that mean the cookie never expires ? Thanks.
3
by: =?Utf-8?B?Q2h1Y2sgUA==?= | last post by:
What properties on a HttpCookie give invalid information when you read it from the Request object? For example if you run this code, I believe the domain, expires, and HttpOnly do not tell the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.