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

Cookie problem Sessionid get doubled

Hi,

we've the following problem :

We have an asp-application which sets the cookie on first login. The cookie
will never be touched during user access. The user can work the whole day,
but after 6 to 7 hours, the cookie get 2-4 new asp-sessionid's thus
overwriting the very first entries in the cookie. Does anyone had the same
problem or has a solution. The server is a w2003 enterprise the client has
windows xp sp2.

Regards

Christoph
Jul 22 '05 #1
7 2131
What are you storing in the cookie? I don't really understand what you're
saying here with the cookie getting 2-4 session IDs.

Ray at work

"Christoph Pieper" <Ch*************@discussions.microsoft.com> wrote in
message news:61**********************************@microsof t.com...
Hi,

we've the following problem :

We have an asp-application which sets the cookie on first login. The cookie will never be touched during user access. The user can work the whole day,
but after 6 to 7 hours, the cookie get 2-4 new asp-sessionid's thus
overwriting the very first entries in the cookie. Does anyone had the same
problem or has a solution. The server is a w2003 enterprise the client has windows xp sp2.

Regards

Christoph

Jul 22 '05 #2
the way your explaining it does not make sense
"Christoph Pieper" <Ch*************@discussions.microsoft.com> wrote in
message news:61**********************************@microsof t.com...
Hi,

we've the following problem :

We have an asp-application which sets the cookie on first login. The
cookie
will never be touched during user access. The user can work the whole day,
but after 6 to 7 hours, the cookie get 2-4 new asp-sessionid's thus
overwriting the very first entries in the cookie. Does anyone had the same
problem or has a solution. The server is a w2003 enterprise the client
has
windows xp sp2.

Regards

Christoph

Jul 22 '05 #3
Hi,

we store here the user login data , and other important data. this data will
be cleaned out if we get the 3 or 4 new sessionids (and we don't know how
they get there, 'cause we only read the data on a session timeout). so if we
get a session timeout, we could read the data from the cookie again and
restore the session.

Regards

Christoph

"Ray Costanzo [MVP]" wrote:
What are you storing in the cookie? I don't really understand what you're
saying here with the cookie getting 2-4 session IDs.

Ray at work

"Christoph Pieper" <Ch*************@discussions.microsoft.com> wrote in
message news:61**********************************@microsof t.com...
Hi,

we've the following problem :

We have an asp-application which sets the cookie on first login. The

cookie
will never be touched during user access. The user can work the whole day,
but after 6 to 7 hours, the cookie get 2-4 new asp-sessionid's thus
overwriting the very first entries in the cookie. Does anyone had the same
problem or has a solution. The server is a w2003 enterprise the client

has
windows xp sp2.

Regards

Christoph


Jul 22 '05 #4
Do you mean ASP session ids (as in Session.SessionID). That ID will only
change if the browser fails to send the session cookie. IIS will then
generate a new one. It should have no effect on your cookie unless you reset
your cookie data when a new ASP session starts.

Is your cookie a disk cookie (has an expiration date) or a memory cookie (no
expiration date)?

--
--Mark Schupp
"Christoph Pieper" <Ch*************@discussions.microsoft.com> wrote in
message news:B4**********************************@microsof t.com...
Hi,

we store here the user login data , and other important data. this data
will
be cleaned out if we get the 3 or 4 new sessionids (and we don't know how
they get there, 'cause we only read the data on a session timeout). so if
we
get a session timeout, we could read the data from the cookie again and
restore the session.

Regards

Christoph

"Ray Costanzo [MVP]" wrote:
What are you storing in the cookie? I don't really understand what
you're
saying here with the cookie getting 2-4 session IDs.

Ray at work

"Christoph Pieper" <Ch*************@discussions.microsoft.com> wrote in
message news:61**********************************@microsof t.com...
> Hi,
>
> we've the following problem :
>
> We have an asp-application which sets the cookie on first login. The

cookie
> will never be touched during user access. The user can work the whole
> day,
> but after 6 to 7 hours, the cookie get 2-4 new asp-sessionid's thus
> overwriting the very first entries in the cookie. Does anyone had the
> same
> problem or has a solution. The server is a w2003 enterprise the client

has
> windows xp sp2.
>
> Regards
>
> Christoph


Jul 22 '05 #5
Hi Mark,

thx for your reply. Yes the sessionID (session.sessionid) is changing and is
written in addition into the cookie. How can this happen since we do only
create in one time. the session does not terminate, and we do not access the
cookie again (tested). Why should the browser fail to send the session cookie
? the cookie has an expiration date of 24hours from login on.

regards

christoph

"Mark Schupp" wrote:
Do you mean ASP session ids (as in Session.SessionID). That ID will only
change if the browser fails to send the session cookie. IIS will then
generate a new one. It should have no effect on your cookie unless you reset
your cookie data when a new ASP session starts.

Is your cookie a disk cookie (has an expiration date) or a memory cookie (no
expiration date)?

--
--Mark Schupp
"Christoph Pieper" <Ch*************@discussions.microsoft.com> wrote in
message news:B4**********************************@microsof t.com...
Hi,

we store here the user login data , and other important data. this data
will
be cleaned out if we get the 3 or 4 new sessionids (and we don't know how
they get there, 'cause we only read the data on a session timeout). so if
we
get a session timeout, we could read the data from the cookie again and
restore the session.

Regards

Christoph

"Ray Costanzo [MVP]" wrote:
What are you storing in the cookie? I don't really understand what
you're
saying here with the cookie getting 2-4 session IDs.

Ray at work

"Christoph Pieper" <Ch*************@discussions.microsoft.com> wrote in
message news:61**********************************@microsof t.com...
> Hi,
>
> we've the following problem :
>
> We have an asp-application which sets the cookie on first login. The
cookie
> will never be touched during user access. The user can work the whole
> day,
> but after 6 to 7 hours, the cookie get 2-4 new asp-sessionid's thus
> overwriting the very first entries in the cookie. Does anyone had the
> same
> problem or has a solution. The server is a w2003 enterprise the client
has
> windows xp sp2.
>
> Regards
>
> Christoph


Jul 22 '05 #6

"Christoph Pieper" <Ch*************@discussions.microsoft.com> wrote in
message news:40**********************************@microsof t.com...
Hi Mark,

thx for your reply. Yes the sessionID (session.sessionid) is changing and
is
written in addition into the cookie. How can this happen since we do only
create in one time. the session does not terminate, and we do not access
the
cookie again (tested). Why should the browser fail to send the session
cookie
? the cookie has an expiration date of 24hours from login on.
You said you don't access the cookie until the session has timed out. At
that point the session ID is invalid to IIS, so it generates another ID for
the new session. The cookie doesn't expire for 24 hours, but the default
ASP session timeout is 20 minutes. So IE is sending all of the session ids
along with the rest of the cookie, it's just that all but one are no longer
meaningful to the server.

If you had a way to to tell which sessionid was older, you might be able to
set the expired one to zero length. Or, when you detect that you've
accumulated too much sessionid baggage, you could expire the cookie, post
the info back to yourself (like with a refresh pragma, or by emitting some
client script) and then create a new cookie out of the info you posted to
yourself.
-Mark

regards

christoph

"Mark Schupp" wrote:
Do you mean ASP session ids (as in Session.SessionID). That ID will only
change if the browser fails to send the session cookie. IIS will then
generate a new one. It should have no effect on your cookie unless you
reset
your cookie data when a new ASP session starts.

Is your cookie a disk cookie (has an expiration date) or a memory cookie
(no
expiration date)?

--
--Mark Schupp
"Christoph Pieper" <Ch*************@discussions.microsoft.com> wrote in
message news:B4**********************************@microsof t.com...
> Hi,
>
> we store here the user login data , and other important data. this data
> will
> be cleaned out if we get the 3 or 4 new sessionids (and we don't know
> how
> they get there, 'cause we only read the data on a session timeout). so
> if
> we
> get a session timeout, we could read the data from the cookie again and
> restore the session.
>
> Regards
>
> Christoph
>
> "Ray Costanzo [MVP]" wrote:
>
>> What are you storing in the cookie? I don't really understand what
>> you're
>> saying here with the cookie getting 2-4 session IDs.
>>
>> Ray at work
>>
>> "Christoph Pieper" <Ch*************@discussions.microsoft.com> wrote
>> in
>> message news:61**********************************@microsof t.com...
>> > Hi,
>> >
>> > we've the following problem :
>> >
>> > We have an asp-application which sets the cookie on first login. The
>> cookie
>> > will never be touched during user access. The user can work the
>> > whole
>> > day,
>> > but after 6 to 7 hours, the cookie get 2-4 new asp-sessionid's thus
>> > overwriting the very first entries in the cookie. Does anyone had
>> > the
>> > same
>> > problem or has a solution. The server is a w2003 enterprise the
>> > client
>> has
>> > windows xp sp2.
>> >
>> > Regards
>> >
>> > Christoph
>>
>>
>>


Jul 22 '05 #7
"Christoph Pieper" wrote:
We have an asp-application which sets the cookie on first login.
The cookie will never be touched during user access. The user can
work the whole day, but after 6 to 7 hours, the cookie get 2-4 new
asp-sessionid's thus overwriting the very first entries in the
cookie. Does anyone had the same problem or has a solution. The
server is a w2003 enterprise the client has windows xp sp2.


There are numerous possibilities that your post does not address.

For starters, are you certain that the user has not closed (and reopened)
the browser all day?

Is there any chance the user is opening a second browser window?

Do you use frames (includes IFRAME) ?

Have you observed this problem in any browser other than Internet Explorer?

Do you have a privacy policy?

Those are only some of the questions whose answers have session
consequences.
Here's a decent list:
http://aspfaq.com/show.asp?id=2157
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 22 '05 #8

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

Similar topics

0
by: Sucpraran | last post by:
We are using Cookies in our application to track user session. It works 95% but fails in occations. We could not find any pattern for this. Below is the code to Set and Get cookies. In the...
8
by: krisrajz | last post by:
Please observe the pages below: session1.asp <% Session("test")="TESTING" Response.Redirect "session2.asp" %> session2.asp
5
by: | last post by:
Hi, I'm trying to use the cookie munging session handling behaviour of asp.net instead of cookies themselves as I'm finding quite a few people are barring cookies (especially AOL users). If I...
3
by: Ben | last post by:
Hi, I'm sending out a session cookie. That is a cookie that has no expiration date. When I surf through the site, no problems, but if I close the browser and open it back up, the cookie is still...
4
by: Gridlock | last post by:
I'm trying to read the cookies using HttpContext.Current.Request.Cookies, but the only cookie that I get is the ASP.NET SessionId cookie. There are many cookies on the machine, why am I only...
3
by: Andrea | last post by:
I noticed that if cookie is disabled, unfortunately adding cookie to the collection doesn't trap any error, and this is really good for some aspects, because it's impossibile to understand that...
3
by: Paul | last post by:
I'm having a problem with the session being reset after setting a cookie. This is not supposed to happen. If I comment out the Add line below the site works normally, the session persists. Help. ...
4
by: Ibrahim. | last post by:
Hi, Kindly clarify the followings; 1. Is the session cookie & FormsAuthenticationTicket cookie Interdependent? 2. When a new SessionID is generated, I have noticed the Session Cookie and...
1
by: BJörn Lindqvist | last post by:
Hello, I have some very serious trouble getting cookes to work. After a lot of work (urllib2 is severly underdocumented, arcane and overengineerd btw) I'm finally able to accept cookes from a...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.