Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 09-04-2008, 01:39 AM Remembered state
UCDaZ's Avatar
Skilled Talker

Posts: 80
Name: Nick Leung
Location: Silicon Valley
Trades: 0
I'm trying to figure out what this process is called.

Example:
When I'm NOT logged into the site, and I want to click on the action on page 1, it will bring me to the login page. Once I'm logged in, it will forward me back to page 1.

How does it remember which state I was in? What is this process called, so I can search for google tutorials?
UCDaZ is offline
Reply With Quote
View Public Profile Visit UCDaZ's homepage!
 
 
Register now for full access!
Old 09-04-2008, 02:06 AM Re: Remembered state
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
it is a cookie
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 09-04-2008, 03:17 AM Re: Remembered state
UCDaZ's Avatar
Skilled Talker

Posts: 80
Name: Nick Leung
Location: Silicon Valley
Trades: 0
oh yeah! that's right! thanks!
UCDaZ is offline
Reply With Quote
View Public Profile Visit UCDaZ's homepage!
 
Old 09-04-2008, 03:28 AM Re: Remembered state
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
This could be that your state is saved into a session too.
http://www.php.net/manual/en/intro.session.php
Quote:
Session support in PHP consists of a way to preserve certain data across subsequent accesses. This enables you to build more customized applications and increase the appeal of your web site.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 09-04-2008, 04:20 AM Re: Remembered state
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Tripy, I hope you know, that session is based on cookies also (we are not talking about passing session ID through urls).
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 09-04-2008, 04:54 AM Re: Remembered state
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Quote:
Tripy, I hope you know, that session is based on cookies also (we are not talking about passing session ID through urls).
Not necessarily, but of course I knew that.
I was saying session like "I have a variable set in my session" rather than cookie like "I have set a cookie valid up to 2100 with my login credentials in it"

:-D
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 09-04-2008, 12:29 PM Re: Remembered state
Skilled Talker

Posts: 85
Name: Ilyes Rhouma
Trades: 0
It may also be in the url as a GET variable, I sometimes see in url:
site.com/login.php?id=...&next=...
the next variable (it can be in any other name ) saves the url where the user should be sent after log in.
__________________
Want a cheap and custom programmer or writer ?
Please login or register to view this content. Registration is FREE

Are you
Please login or register to view this content. Registration is FREE
? Start
Please login or register to view this content. Registration is FREE
free and earning money !
Please login or register to view this content. Registration is FREE
Ilyes is offline
Reply With Quote
View Public Profile Visit Ilyes's homepage!
 
Reply     « Reply to Remembered state
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.56006 seconds with 12 queries