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.


Reply
 
LinkBack Thread Tools Display Modes
Old 02-08-2009, 08:39 AM   #1 (permalink)
Contributing Member
 
Join Date: 12-14-08
Posts: 140
iTrader: 0 / 0%
Latest Blog:
None

2939195631902 is liked by many
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.
2939195631902 is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-08-2009, 09:12 AM   #2 (permalink)
Contributing Member
 
Join Date: 06-11-07
Posts: 238
iTrader: 0 / 0%
Latest Blog:
None

Capo64 is a jewel in the roughCapo64 is a jewel in the roughCapo64 is a jewel in the roughCapo64 is a jewel in the roughCapo64 is a jewel in the roughCapo64 is a jewel in the rough
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:
http://us.php.net/manual/en/function.session-id.php
http://us.php.net/manual/en/function.session-encode.php

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.
Capo64 is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


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
Trackbacks are On
Pingbacks are On
Refbacks are On


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 09:20 AM
Session ID PHP GoldDust Coding Forum 20 04-05-2004 11:25 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 12:36 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.