Cookies - sessions- Ruby

F

Fred

Hi,

In the cookies file, i have my settings to connect to an site.

User, password, cid and sid.
The problem is the sid, that change everytime depending if i have
connected again or closed the browser.

Is it possible to programs something dynamically, so that in my rb file
the sid is picked up automatically?

For instance i'm connected to this site through my ruby program.
Now if i log in on an other computer my ruby programs fail, because the
sid is not correct anymore.
 
R

Roger Pack

could ask this on the rails list. I think the answer might be Restful
or something like that.
 
F

Fred

Herb Martin schreef:
Fred said:
Hi,

In the cookies file, i have my settings to connect to an site.

User, password, cid and sid.
The problem is the sid, that change everytime depending if i have
connected again or closed the browser.

Is it possible to programs something dynamically, so that in my rb file
the sid is picked up automatically?

For instance i'm connected to this site through my ruby program.
Now if i log in on an other computer my ruby programs fail, because the
sid is not correct anymore.

Google: [ ruby libcurl ]
I can't get this too work.
Thnx anyway
 
F

Fred

Roger Pack schreef:
curl allows you to save cookies to a file then reload them, if that's useful.
What exactly are you trying to accomplish?
Google: [ ruby libcurl ]

Hi,

In the cookies file, i have my settings to connect to an site.

User, password, cid and sid.
The problem is the sid, that change everytime depending if i have
connected again or closed the browser.

Is it possible to programs something dynamically, so that in my rb file
the sid is picked up automatically?

For instance i'm connected to this site through my ruby program.
Now if i log in on an other computer my ruby programs fail, because the
sid is not correct anymore.
 

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

Staff online

Members online

Forum statistics

Threads
474,206
Messages
2,571,068
Members
47,674
Latest member
scazeho

Latest Threads

Top