I need to set a cookie's expiration time according to a client's time.
currently i am using "time()+120". This is a problem as if the clients time is more than 2 minutes behind the webserver's time, the cookie is unset.
I know it is possible to get client time with javascript, but how would i get the time from javascript's "Date()" to a variable in php?
Any suggestions would be appreciated. 🙂
Thanks
disco biscuit