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

SessionsIDs



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

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

http://www.blah.com/orders/order.asp...df323124342432

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

Nov 18 '05 #1
4 1069
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
Nov 18 '05 #2
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" <an*******@discussions.microsoft.com> a écrit dans le message de
news:94**********************************@microsof t.com...

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
http://www.blah.com/orders/(lakdf323...432)order.aspx
My question is how I can change this to a format like this

http://www.blah.com/orders/order.asp...df323124342432

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

Nov 18 '05 #3

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
---
Best Regards
Amir

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #4
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

"Amir Ghezelbash" <am*******@hotmail.com> a écrit dans le message de
news:%2****************@TK2MSFTNGP11.phx.gbl...

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
---
Best Regards
Amir

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #5

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

Similar topics

4
by: A Web Master | last post by:
I am designing a site for a client where I have a frameset and 3 frames (all in ASP). I am creating session variables in the frameset that need to be accessed in the frames. It seams that in...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
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...
0
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...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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: 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...

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.