Date:  11/28/2006 11:42:37 AM Msg ID:  003226
From:  John Sullivan Thread:  003226
Subject:  When is Session ID assigned?
The Foxweb documentation states "A new session id is assigned to the same user after each request, unless the session is committed, by associating at least one session variable with it. "

Does this mean I need to use at least one Session.SetVar to create a consistent session for a visitor to my web site? If I use the Session.GetSessionID() does this set a session ID for the visitor, which will remain consistent until the  session timeout is reached or until I execute Session.Abandon?

I tested the session ID and on one test it was 10 characters in length and another it was 11 character. Why would this happen and is this normal? What I did was to retrieve the session ID using GetSessionID and then saved it to a file using the VFP Strtofile function. I reviewed the session ID after each test to see exactly what was saved in the file.

Why would the session ID length vary? It did not vary while in the session. If it started as a 10 character unique string it remained 10 characters. But creating a new session later showed it as an 11 character string for the new session.

What I want to do is use the session ID to create a shopping cart method for saving information to use from page to page.

Thanks for your help. By the way, I love Foxweb!

John Sullivan