473,811 Members | 2,982 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2069
You can call Session.Abandon , which will create a new session on the next
request.

"dotnettest er" <do**********@d iscussions.micr osoft.com> wrote in message
news:F3******** *************** ***********@mic rosoft.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.IsNewSe ssion 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
2245
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 = false Recently my asp.net app is returning wrong data to users. Users frequently get data that should only be seen by other user.
8
2007
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 cart. I have copy / pasted the code into a new site. Everything is working, EXCEPT for the shopping cart holding the SessionID. I have watched the variable, and each time I hit the 'Update' button in a datalist, the session ID changes. That is...
6
7666
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 page. I thought SessionID is supposed to stay static until the session timeout defined in the web.config. Or am I missing something here??? Thanks!!
4
8842
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: Session.Clear(); Session.Abandon(); FormsAuthentication.SignOut();
4
535
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>") Response.Write(HttpContext.Current.Session("tesAt") & "|<br>") Response.Write(HttpContext.Current.Session(ss.SessionID) & "|<br>")
2
4277
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" the user's tracking and handle the user as if he had just logged on. To do that, I need a new sessionID. But even if I call Session.Abandon(), the user's SessionID does not change -- it just dumps session values. How can I force a new...
2
2535
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 interface); 2.Send this value to the server; 3.Read the session associated with this sessionID and check if this session logined. Now i can get the sessionID.but don't know how to get the session by sessionID;
2
3217
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
1130
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 from a physical path on my server,pops up the Save As dialog and using HTTP Response downloads the file. It works great off desktop IE, but when i try the same page from PocketIE it just fetches the image and displays it in IE. How can i make it...
0
10395
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10408
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10137
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9211
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7674
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6895
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5700
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3876
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3027
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.