# How to pass cookies to any website url?

**URL:** <https://www.ruby-forum.com/t/how-to-pass-cookies-to-any-website-url/197161>\
**Category:** Ruby\
**Created:** [March 14, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/how-to-pass-cookies-to-any-website-url/197161 "2008-03-14T19:14:05Z")\
**Posts on this page:** 1\
**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:14pm UTC](https://www.ruby-forum.com/t/how-to-pass-cookies-to-any-website-url/197161/1 "2008-03-14T19:14:05Z")

</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
