Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2005

Tip: Looking for answers? Try searching our database.

How to refresh Session ID?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RC - 17 Oct 2005 21:05 GMT
Hi,

I wanna refresh the session ID after session terminated.
I called session.abandon() to end the session.

However, when I use same PC client to login the system.....the session id is
same as previous session, how to refresh the session ID in this case?

Regards,
RC
Juan T. Llibre - 17 Oct 2005 21:09 GMT
You can't do that unless the browser is closed.

If the browser isn't closed after the first session ends,
the Session ID will remain the same in the new session.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
> Hi,
>
[quoted text clipped - 6 lines]
> Regards,
> RC
brians[MCSD] - 17 Oct 2005 22:44 GMT
RC - From your question, I'm not sure exactly what you're doing but in the
current (nov 05) issue of the msdn, web q&a page 11, someone asks "if they
can force a new session id"? The editor suggest that this can be done by
editing the web.config file so that you have a cookieless session state:

=-=-=-=-=-
   <sessionState ... cookieless="true" ...  />
=-=-=-=-=-=-

In the cookieless mode, the server automatically inserts the sessionid into
the initial and all subsequent, relative url's. If you specify an absolute
URL for a redirect or popup a new browser session, a new sessionid will be
created (you'll see it as part of the url). YMMV - I personally am not a big
fan of having the sessionid in the url.

Signature

brians
http://www.limbertech.com

> Hi,
>
[quoted text clipped - 6 lines]
> Regards,
> RC

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.