Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > New Session Creation

Reply
Thread Tools

New Session Creation

 
 
Naina Mohamed
Guest
Posts: n/a
 
      12-24-2003
I have abandon a session in my page and navigate to some
other page thro' Redirect method, but i am getting old
session id in the navigated page.
How to get new session variable in navigated page
 
Reply With Quote
 
 
 
 
Saravana [MVP]
Guest
Posts: n/a
 
      12-24-2003
The Abandon method terminates a user session, destroys all the objects in
the current Session object, and releases its resources. But sessionid can be
recycled for same user, so it is very much possible to get the same
sessionid.

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com



"Naina Mohamed" <(E-Mail Removed)> wrote in message
news:077a01c3c9f7$808dd630$(E-Mail Removed)...
> I have abandon a session in my page and navigate to some
> other page thro' Redirect method, but i am getting old
> session id in the navigated page.
> How to get new session variable in navigated page



 
Reply With Quote
 
 
 
 
Alvin Bruney
Guest
Posts: n/a
 
      12-25-2003
>But sessionid can be recycled for same user, so it is very much possible to
get the same
>sessionid.


No. it's highly unlikely that this recycling would happen because session id
is 120 bits,
each character being assigned randomly by the random number generator.

You are partly correct but the reason for this oddity is entirely different.
After session abandonment or timeout the session id is maintained for as
long as the browser session is current. The implication is that the same
session id is being reused. This is by design for efficiency reasons so that
multiple sessions can
be serviced without need to regenerate a session id.

Why do you want a new session id? You can tell that this is not easy to do
without closing the browser
which i suspect is not an optimal solution for you. Maybe if you explained
what it is you were wanting to achieve then perhaps a better approach might
evolve.



--
Regards,
Alvin Bruney
Got DotNet? Get it here
http://home.networkip.net/dotnet/tidbits/default.htm
"Saravana [MVP]" <(E-Mail Removed)> wrote in message
news:%238Jhg$(E-Mail Removed)...
> The Abandon method terminates a user session, destroys all the objects in
> the current Session object, and releases its resources. But sessionid can

be
> recycled for same user, so it is very much possible to get the same
> sessionid.
>
> --
> Saravana
> Microsoft MVP - ASP.NET
> www.extremeexperts.com
>
>
>
> "Naina Mohamed" <(E-Mail Removed)> wrote in message
> news:077a01c3c9f7$808dd630$(E-Mail Removed)...
> > I have abandon a session in my page and navigate to some
> > other page thro' Redirect method, but i am getting old
> > session id in the navigated page.
> > How to get new session variable in navigated page

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create new session when new IE session is opened? albertly ASP .Net 3 02-08-2008 03:41 AM
new CGI::Session creates a new session every visit. GRRR!!! TonyV Perl Misc 19 03-19-2007 06:45 AM
How to (batch) set EXIF date taken and IPTC creation date and creation time for photos with filenames YYMMDDHHMMSS#.jpg? guercheLE@gmail.com Digital Photography 1 10-04-2005 07:15 PM
Slow creation of new WS + session states jez ASP .Net Web Services 2 03-24-2005 11:15 AM
Session State - What does it take to establish one single ASP.NET session per "browser session" Jeff Smythe ASP .Net 3 01-02-2004 04:10 AM



Advertisments