2 messages in ru.sysoev.nginxcookie injection / verification / red...
FromSent OnAttachments
Payam ChychiJan 22, 2009 8:27 pm 
Nick PearsonJan 22, 2009 9:01 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:cookie injection / verification / redirectActions...
From:Payam Chychi (pchy@gmail.com)
Date:Jan 22, 2009 8:27:13 pm
List:ru.sysoev.nginx

Hey Guys,

Im trying to see what the best way of doing this would be... any and all thoughts are greatly appreciated.

a) client --> proxy --> [cookie set?] if yes, proxy connection to $origin. call it a day b) client --> proxy --> [cookie set?] if no, set cookie, redirect client to proxy and see if the cookie is set, if No, keep looping; if yes, proxy connection to $origin.

I see that you can use the following ways to inject cookie into the header:

add_header Cookie "mysuperdoopercookiehere"; or userid on; userid_name uid; userid_domain domainname_here.com;

Using firefox cookie header add-on, ive been able to confirm that the cookie injection works just fine however, I haven't a clue on how to properly write the redirect so that if the cookie is not set, set it and have the client re-establish connection with the cookie added to the header and if the connection has a cookie set then pass it to the proxy.

Any help with this would greatly be appreciated... ive been banging my head to my desk for the last 2 days.

Thanks in advance, Payam