cookie expiration

R

Ram

Hi

I am using cookie to store unique encrypted token, i want to use the cookie
expire time 8 hours.

I doing like below to expire:
Cookie.Expres = DateTime.Now.AddHours(8)

Its working in my local system as both are in same time zones. I got the
problem when I deployed my application to Server, unfortunatley this server
is in GMT time zone and my client is in GMT+5:30 time zone, So when i login
to my ASP.NET application cookie expiration is taking I hour + some minutes
more to expire. I can even see this in my cookie file expires attribute in my
local machine.

How to set cookie expire property when server and client are in diffrent
timezones.

Could anybody help me as it is become critical ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,261
Messages
2,571,041
Members
48,769
Latest member
Clifft

Latest Threads

Top