[jQuery] Re: Generate Session ID

2009-02-14 Thread C.Everson

On Sat, 14 Feb 2009 10:41:05 -0900, Tim Johnson wrote:

 Using Ajax with jQuery - would it be practical and safe for the
 document to generate a Session ID in the onload or document.ready
 phase and pass it to the server-side script?

Tim,

IMHO the ONLY way to ensure a unique session ID is to generate it server
side.

Otherwise no matter what you do (client side) there is a chance of
duplication.

Chuck



[jQuery] Re: Generate Session ID

2009-02-14 Thread Tim Johnson

On Saturday 14 February 2009, C.Everson wrote:
 On Sat, 14 Feb 2009 10:41:05 -0900, Tim Johnson wrote:
  Using Ajax with jQuery - would it be practical and safe for the
  document to generate a Session ID in the onload or document.ready
  phase and pass it to the server-side script?

 Tim,

 IMHO the ONLY way to ensure a unique session ID is to generate it server
 side.

 Otherwise no matter what you do (client side) there is a chance of
 duplication.
  Understood. I'll stick with my tried-and-true cgi methods.
  thanks
  tim