Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Question about Session.Sessionid
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

redbrad0
Advanced Member

USA
3725 Posts

Posted - 20 April 2001 :  13:58:34  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
When using Session.Sessionid i know it resets when the session is ended, but is there a way that Session.Sessionid gets different id's maybe for some internet companies?

Im just wondering if its good to use Session.Sessionid to track the users or if i should just save Session.Sessionid in a cookie and then access it from their.

Please give your input

Thanks

Brad

redbrad0
Advanced Member

USA
3725 Posts

Posted - 21 April 2001 :  23:53:47  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
BUMP

anyone?

Brad
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 22 April 2001 :  01:08:09  Show Profile
I don't understand what you are asking.

======
Doug G
======
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 22 April 2001 :  10:28:09  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
As you know session.sessionid give you a unique id number for that session on the server when the user access the web page. i am using that number to track the visitors to see where people are and a bunch of other stuff. so what i need is to have that session.sessionid number on everypage and it not changing while they are on the site.

I thought that i heared that people on aol or something get random ip address everytime they try and access a page. now i know they get a different ip address everytime they logon to aol. or maybe people behind a firewall.

im just trying to find the best way to track each unique user. right now im storing their session.sessionid into a cookie and using that. does that help explain a little?

Brad
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 22 April 2001 :  12:56:27  Show Profile
I don't know where IP addresses come in to play, but using Session.SessionID as a long-term tracking number won't work. Session ID's may be reused for different sessions over time. The ID is only known to be unique during the particular session, a different user initiating a new session hours later may receive a previously used ID


======
Doug G
======
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 23 April 2001 :  09:13:40  Show Profile  Visit Gremlin's Homepage
you should always treat Session.Id's as being non-unique.

Whilst over a period of time all session Id's allocated by the server may appear to be unique, I believe that they are never guaranteed to be so (someone feel free to correct me if im wrong please).

If your considering saving a cookie, then why bother with session ID's at all? you may find it easier just to store everything you need to reference serverside in the cookie, for maintaining 'persistence of session' IMO cookies is a much more reliable way of doing things.

Cheers.

Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 23 April 2001 :  12:40:08  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
well the cookie that im saying the session.id is deleted as soon as they close their browser, or leave the website.

All I need is a way with a unique number track visitors on the site for an active user code i wrote. plus it does some other hidden things, but thats what im looking for. any sugestions?

Brad
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07