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

Force a new SessionId

Hi,

Is there a way, I can get a new sessionid without user closing the browser
window?

I have a webpage, which logs user input and sessionid. If the user does not
close the browser and if someone else uses the same browser window, I can not
differentiate between different user inputs, because the sessionid is same.

Is there a way, I can force a new sessionid, when a certain page is viewed?

Thanx
Nov 19 '05 #1
3 2037
You can call Session.Abandon, which will create a new session on the next
request.

"dotnettester" <do**********@discussions.microsoft.com> wrote in message
news:F3**********************************@microsof t.com...
Hi,

Is there a way, I can get a new sessionid without user closing the browser
window?

I have a webpage, which logs user input and sessionid. If the user does
not
close the browser and if someone else uses the same browser window, I can
not
differentiate between different user inputs, because the sessionid is
same.

Is there a way, I can force a new sessionid, when a certain page is
viewed?

Thanx

Nov 19 '05 #2
dotnettester wrote:
Hi,

Is there a way, I can get a new sessionid without user closing the browser
window?

I have a webpage, which logs user input and sessionid. If the user does not
close the browser and if someone else uses the same browser window, I can not
differentiate between different user inputs, because the sessionid is same.

Is there a way, I can force a new sessionid, when a certain page is viewed?

Thanx


You could try a Session.Abandon and then redirect to the page... not
sure but it might work

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Nov 19 '05 #3
Well, abondoning the session changes
Session.IsNewSession but the sessionid remains same.

:(
"Curt_C [MVP]" wrote:
dotnettester wrote:
Hi,

Is there a way, I can get a new sessionid without user closing the browser
window?

I have a webpage, which logs user input and sessionid. If the user does not
close the browser and if someone else uses the same browser window, I can not
differentiate between different user inputs, because the sessionid is same.

Is there a way, I can force a new sessionid, when a certain page is viewed?

Thanx


You could try a Session.Abandon and then redirect to the page... not
sure but it might work

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

Nov 19 '05 #4

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

Similar topics

2
by: Berrucho | last post by:
Please Help! I recently posted this same issue but got no answer... please help Using VB.NET, IIS5, W2K Adv SP3 all patches, .net 1.0, VS.NET 2002 Using forms authentication, persistent cookie...
8
by: Brad Simon | last post by:
I have written a shopping cart using ASP .NET (VB). It has been running quite successfully on a site for about a year or so. I use the SessionID as the key to hold information on the shopping...
6
by: Mike Kline | last post by:
Hi There! I'm creating a HttpModule and after AcquireRequestState event, I tried to access the HttpApplication.Session.SessionID and somehow I'm getting a new value on every Refersh of ASPX...
4
by: Andy Fish | last post by:
Hi, I have an asp.net application that is using Forms Authentication and maintaining http session state using cookies in the normal way. when the user clicks the logout button I do this: ...
4
by: Kenny | last post by:
Hi, I have created an ASPX Dim ss As HttpSessionState ss = HttpContext.Current.Session HttpContext.Current.Session("tesAt") = "testValue" Response.Write(ss.SessionID() & "|<br>")...
2
by: Hardin | last post by:
I have an app that uses the sessionID to track user navigation and usage through the application. It works fine except in one case: There is a point in the application where I want to "close"...
2
by: ocean | last post by:
I want to get the session associated with the specific sissionID. I made a activex control required to login to the server.My idead as follow: 1.Get sessionID through IHTMLDocument2 interface(a COM...
2
by: XML newbie: Urgent pls help! | last post by:
If I get SessionID in 1 function how do I carry that SessionID(value of this SessionID) to another function or another form within the same project
0
by: Mustafa Rabie | last post by:
Hi All, I am writing an ASP.NET 2.0 Web Application that users can buy and download pictures, songs, etc. I have a page that servers as the download page that fetches the file to be downloaded...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.