Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Retrieving session data from a cookie
ddjolley
2/20/2009 8:26:00 PM
The pick-axe book describes a method for retrieving cookie-based session
data from within a cgi script. It works fine from within a cgi script.
What I would really like to know is how I can accomplish this feat of
retrieving the same data from within embedded Ruby. Can anyone help me
out on this one? Thanks for any input. FWIW, I'm appending what the
pick-axe book has to say about doing it from a cgi script. Thanks for
any input.
... doug
Pick Axe Book:
require "cgi"
require "cgi/session"
cgi = CGI.new("html3")
sess = CGI::Session.new( cgi, "session_key" => "rubyweb",
"prefix" => "web-session.")
cgi.out{
cgi.html{
"\nCustomer #{sess['CustID']} orders an #{sess['Part']}"
}
}
--
Posted via
http://www.ruby-...
.
1 Answer
The Revd
1/21/2014 6:01:00 PM
0
On Tue, 21 Jan 2014 08:52:50 -0800 (PST), Rear <rear_me@hotmail.com>
wrote:
>On Tuesday, January 21, 2014 3:47:46 PM UTC+2, The Revd wrote:
>> On Tue, 21 Jan 2014 01:29:52 -0800 (PST), drense678@gmail.com wrote:
>>
>>
>>
>> >Video:
>>
>> >
http://www.youtube.com/watch?v=FR3ChD...
>>
>>
>>
>> One Solution... kill zionism!
>
>One solution, kill Serbianism!
Wait till the Russians resume control of Finnllanndd...YOU will find
yourself ethnically cleansed...and reared!
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Retrieving session data from a cookie
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password