Jump to content

Date Cookie


garevn
 Share

Recommended Posts

Hello according to this i found here!

<%dim numvisitsresponse.cookies("NumVisits").Expires=date+365numvisits=request.cookies("NumVisits")if numvisits="" then   response.cookies("NumVisits")=1   response.write("Welcome! This is the first time you are visiting this Web page.")else   response.cookies("NumVisits")=numvisits+1   response.write("You have visited this ")   response.write("Web page " & numvisits)   if numvisits=1 then	 response.write " time before!"   else	 response.write " times before!"   end ifend if%>

which result:"You have visited this Web page 2 times before!" ......ets I wonder if there is a way to display the days since last visit, for example:"You have visited this Web page 15 days before!

Edited by garevn
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...