Cookie Expiring Date

Tollef Fog Heen tfheen at redpill-linpro.com
Tue Feb 3 15:25:18 CET 2009


]] Steven Tönsing 

| Hi everyone,
| I'm just trying to get the vanish 2.0.2 running in front of a cms. The  
| problem is, the user need to be passed to the backend if the "admin"  
| cookie is set and valid.
| Therefore i'm wondering if there is a way to find out if the expiring  
| date of a cookie is in the future or in the past.

If it has expired, the client just won't send it, so just check
req.http.cookie for the relevant cookie and you'll be fine.

-- 
Tollef Fog Heen 
Redpill Linpro -- Changing the game!
t: +47 21 54 41 73



More information about the varnish-misc mailing list