SessionsIDs

G

Guest

Hi every one I need help with session ids
I want keep track of my users online who are ordering, I want to use session id to assign them unique ids now when I use cookie less sessions ids I get something like this

www.blah.com/orders/(lakdf323124342432)order.aspx
My question is how I can change this to a format like this

www.blah.com/orders/order.aspx?sid=lakdf323124342432

I don’t want nor HAVE to use cookie less sessions id, I just want to be able to assignee each user an unique id and pass that id within the link

Can someone help me please?
Thanks you
 
G

Guest

Any problem in using HttpContext.Current.Session.SessionID

This will be unique for each browser session

You need not to worry about how .NEt handles the session, SessionID will always give you a new session, provided youhaven't disabled session for the application
 
P

Patrice

As a side note keep in mind that the SessionID is specific to a particular
session, not a particular user (unclear but it looks like you would like use
the SessionID as a key for a *new* user ? I would create just a new GUID, if
for anything else, to make clear that a SessionID and the UserID of my new
user are not at all required to be the same).

Patrice

Amir said:
Hi every one I need help with session ids
I want keep track of my users online who are ordering, I want to use
session id to assign them unique ids now when I use cookie less sessions ids
I get something like this
www.blah.com/orders/(lakdf323124342432)order.aspx
My question is how I can change this to a format like this

www.blah.com/orders/order.aspx?sid=lakdf323124342432

I don't want nor HAVE to use cookie less sessions id, I just want to be
able to assignee each user an unique id and pass that id within the link
 
A

Amir Ghezelbash

Hi Thanks for your responses, could you elaborate on what you man with
GUID , yes i do want to assing every USER an uinque ID so i can track
their order
 
P

Patrice

If the user have to create an account so that he could come at later time to
consult the status order, do new commands more easily or anything else, when
the user register himself in the database, you have to identify them. You
could use :
- an autoincrement number
- a GUID, basically a big random unique number that is created using
System.Guid.NewGUID

The key point was that the SessionID identifies just a particular session.
That is if the same user returns on your site at a later time, he'll have a
brand new session id i.e. it is not sufficient to identify the user.


Patrice
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top