User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 397,625 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,431 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting

log in script saves cookie

Join Date: Feb 2006
Posts: 4
Reputation: Aperson is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Aperson Aperson is offline Offline
Newbie Poster

Re: log in script saves cookie

  #3  
Feb 22nd, 2006
Originally Posted by tgreer
You can certainly write cookies with JavaScript, yes. A simple web-search should reveal hundreds of examples. You can also use the JavaScript "timer" object to periodically check to see if a cookie has expired. So yeah, this could be done. However, it won't be secure.

Could somebody actually help me with a code for this. The idea is to create a dropdown login menu, with options like "log in for 30 mins" log in for 1 hour" log in for x hours" login forever(which would be virtually an autologin by ip. cookie stores ip and keeps your session neverending bascially?
can this be done?
Reply With Quote  
All times are GMT -4. The time now is 9:03 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC