Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.

Thread Tools Display Modes
Share |
Old 02-08-2009, 08:39 AM
2939195631902 2939195631902 is offline
Contributing Member
Join Date: 12-14-08
Posts: 140
iTrader: 0 / 0%
Lightbulb Where is session stored? can i extend the period a session last?

Where is session stored? can i extend the period it last?

Many people prefer to use session for user login. But i just came realize that session normally only last until the web browser closes.

I'm working on a login page and i'm trying to make a session or something similar that will last for a week or so. I don't want to use cookie because its unsecured.

if anyone have any ideas please let me know.
Reply With Quote



Old 02-08-2009, 09:12 AM
Capo64 Capo64 is offline
Contributing Member
Join Date: 06-11-07
Posts: 238
iTrader: 0 / 0%
The session is stored on your server. You can't really store it anywhere else, but you can use cookies to either store the values on the user's computer, or I believe you can store the session_id in a cookie, and then load that session from their computer. I'm sure there's probably some kind of security measures you need to take, but take a look at:

session_encode encodes the session as a string. You can probably store that string as a cookie and then decode it later.. session_id sets/gets the session_id. You can store this in a cookie and load it if the cookie is set.
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Session / IE6 Sketch Coding Forum 0 12-12-2007 06:11 AM
Session ID's in your url TheWebJunkie SEO Forum 7 03-13-2005 08:07 AM
php session ids se4b4ss SEO Forum 7 12-07-2004 03:37 PM
Need to remove session IDs popeye Coding Forum 0 04-09-2004 08:20 AM
Session ID PHP GoldDust Coding Forum 20 04-05-2004 10:25 AM

V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory

All times are GMT -7. The time now is 02:38 AM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC