HOW TO CREATE ENDLESS COOKIE?

Takeshi Okada

Total Post:89

Points:629
Posted by  Takeshi Okada
ASP.Net  C# 
 867  View(s)
Ratings:
Rate this:
i'm want to make endless cookie how to possible
  1. Kamlakar Singh

    Post:194

    Points:1396
    Re: How to create endless cookie?

    Not strictly endless, but you can set the cookie lifetime to two years or so which comes pretty close:

    ·         session.cookie-lifetime ini setting

    ·         session_set_cookie_params()Docs function to set them programmatically.

    The session cookie won't be deleted then if the user closes the browser.

    Take care that your session data store keeps the data as well that long. This is important. And keep in mind that you need to store all user's data for this large time-span, so you should have enough space available.

    This does not work at all if the user disables cookies in her or his browser.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!