web sessions

P

paul vudmaska

Maybe someone will clue me in on something with cgi
sessions.

When i create a new session, does it know to create
it's own session_id, a cookie, and/or should i be
rolling one somehow? I've done this(created the id)
and it works ok, for awhile it seems, using Time.now
plus the ip. It's just not clear what is going on to
me. And at times i get these spurious errors that, I
think, are related to sessions. I'm making sure i run
close on the session. I can do the same with
cookies(which i've resorted to), but then there's the
security issue.

In the docs here
http://www.ruby-doc.org/docs/ProgrammingRuby/ , i dont
find a clear answer.

But here,
http://www.ruby-doc.org/stdlib/libdoc/cgi/rdoc/classes/CGI/Session.html
, it seems that it does.

"The session id is an MD5 hash based upon the time, a
random number, and a constant string. This routine is
used internally for automatically generated"

I've seen the db session managers in raa, but thot i'd
better get a handle on this first.

Paul






__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
 

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,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top