# How to pass cookies to website?/?

**URL:** <https://www.ruby-forum.com/t/how-to-pass-cookies-to-website/131958>\
**Category:** Rails\
**Created:** [March 14, 2008, 7:15pm UTC](https://www.ruby-forum.com/t/how-to-pass-cookies-to-website/131958 "2008-03-14T19:15:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![varunkumargoel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ed8c4c/32.png) [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Post date:** [March 14, 2008, 7:15pm UTC](https://www.ruby-forum.com/t/how-to-pass-cookies-to-website/131958/1 "2008-03-14T19:15:26Z")

</div>

Hi All,  
I wanna pass cookies with url.Suppose i have two website and both  
website have LDAP server for user authentication.if i authenticated in  
one website then i wanna pass that cookies to another website for  
authenticating the user.  
Is it possible for single sign on?  
If yes then please tell me how can i pass the cookies url.  
Need your help actually i wanna do single sign on i am able to  
authenticate user through mechanize but i am not getting proper url as a  
authenticated user.  
I hope you got my problem if not the please tell then tell me your  
answer.  
me and if yes .  
Waiting for your reponse.  
Please help me.  
Thanks,  
Varun kumar

---

<div class="post-metadata">

**Author:** ![varunkumargoel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ed8c4c/32.png) [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Post date:** [March 14, 2008, 8:13pm UTC](https://www.ruby-forum.com/t/how-to-pass-cookies-to-website/131958/2 "2008-03-14T20:13:02Z")

</div>

If you want to pass a session\_id or an authenticated key in the URL have  
a look at this plugin. The  
code may give you some ideas.

[http://fatdrive.tv/article/trakb/595-Rails+No-Cookie+Session+Support+Plugin](http://fatdrive.tv/article/trakb/595-Rails+No-Cookie+Session+Support+Plugin)

– Long  
[http://FATdrive.tv/wall/trakb/10-Long](http://FATdrive.tv/wall/trakb/10-Long)  
[http://FATdrive.tv/](http://FATdrive.tv/) - store, play, share

----- Original Message -----  
From: “Varun G.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: Friday, March 14, 2008 1:15 PM  
Subject: [Rails] How to pass cookies to website??/??

---

<div class="post-metadata">

**Author:** ![varunkumargoel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ed8c4c/32.png) [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Post date:** [March 17, 2008, 5:02am UTC](https://www.ruby-forum.com/t/how-to-pass-cookies-to-website/131958/3 "2008-03-17T05:02:43Z")

</div>

Long wrote:

> If you want to pass a session\_id or an authenticated key in the URL have  
> a look at this plugin. The  
> code may give you some ideas.
> 
> [http://fatdrive.tv/article/trakb/595-Rails+No-Cookie+Session+Support+Plugin](http://fatdrive.tv/article/trakb/595-Rails+No-Cookie+Session+Support+Plugin)
> 
> – Long  
> [http://FATdrive.tv/wall/trakb/10-Long](http://FATdrive.tv/wall/trakb/10-Long)  
> [http://FATdrive.tv/](http://FATdrive.tv/) - store, play, share
> 
> ----- Original Message -----  
> From: “Varun G.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> Sent: Friday, March 14, 2008 1:15 PM  
> Subject: [Rails] How to pass cookies to website??/??

Thanks a Lot lang.I will see it and let you know that it’s working for  
me or not?  
Thanks  
Varun
