Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Nummer anzurufen, sie per SMS zu kontaktieren oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Learn More

how to set the cookies in my website

  • 4 Antworten
  • 2 haben dieses Problem
  • 251 Aufrufe
  • Letzte Antwort von jscher2000

more options

i have website , user enter the username and password if they selected Remember me and logged in if they logout i have to appear the user name and password remain in the fields how to add these cookies in my website and if they close the browser and open the browse also user name and password should be remain... can any one help...


Thanks,

Alle Antworten (4)

more options

This is not the best forum for this question...

What language are you using for your web pages? For example, PHP, ASP.Net, Ruby, Python... There will be different recommendations for each server technology.

Also, please do NOT store the username and password in a cookie, especially if you are not using SSL (HTTPS), because the cookies are sent to the server with every single page request and that's a whole lot of traffic to sniff.

more options

Websites remembering you and automatically log you in is stored in a cookie.

  • Create an allow Cookie Exception to keep such a cookie, especially for secure websites and if cookies expire when Firefox is closed.
  • Tools > Options > Privacy > Cookies: Exceptions

In case you are using "Clear history when Firefox closes":

  • do not clear Cookies
  • do not clear Site Preferences

Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.

Clearing cookies will remove all specified (selected) cookies including cookies that have an allow exception and cookies from plugins.

more options

thanks for u r replays...am using python-django but my requirements is like this only... now i decide to save user name only for saving the user name am using jquery cookies but its not working, can any one give code for this

thanks

more options

You probably can find a better forum for python-django questions.