473,395 Members | 1,869 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.

How to refresh Session ID?

RC
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
Nov 19 '05 #1
2 4458
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/
======================================
"RC" <rc@hotmail.com> wrote in message news:%2***************@TK2MSFTNGP12.phx.gbl...
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

Nov 19 '05 #2
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.

--
brians
http://www.limbertech.com
"RC" wrote:
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

Nov 19 '05 #3

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

Similar topics

9
by: Mark | last post by:
I have a working PHP/MySQL application used for data entry. The data entry screen includes a "Save" button. The PHP code for this button looks like this: if (isset($_POST)) { if ($_POST ==...
1
by: Gary W | last post by:
Hello, I have a page, thanks.asp which uses classic ASP VBSCRIPT & CDONTS to send mail, for example: <% Set bc = Server.CreateObject("MSWC.BrowserType") Set objMessage =...
10
by: tasmisr | last post by:
This is an old problem,, but I never had it so bad like this before,, the events are refiring when clicking the Browser refresh button. In the Submit button in my webform, I capture the server side...
0
by: jat14 | last post by:
i have tried several things that i have found to refresh my datagrid they are not workin i insert a record and then try to refresh rebind . i insert the record on a submit click event and then i...
8
by: TS | last post by:
Im in a web page and call an asynchronous method in business class. the call back method is in the web page. When page processes, it runs thru code begins invoking the method then the page...
9
by: TCORDON | last post by:
I have a user control that contains 2 image buttons, when you click one of them, both must change the image source, the thing is that the first time you click any one of them the page appears to do...
2
by: adam | last post by:
Hi ASP Expert, I encounter a page reload situation in ASP. It is I need a way to differentiate whether the current page - "Application_Result.asp" got reloaded itself when user click on the...
3
by: Ned Balzer | last post by:
Hi all, I posted this question some time ago in an earlier thread but so far I still don't have an understanding of why this is happening or what I can do to fix it. I use Session variables,...
3
by: Mike | last post by:
Is there a way to determine if a page was refreshed? I have a function that is called when the page loads, but when the user refreshes the page it calls the function again. Is there a way to call...
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:
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.