PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 31st, 2000, 12:29 AM
Shiju Rajan's Avatar
Shiju Rajan Shiju Rajan is offline
.Net Developer
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: London
Posts: 987 Shiju Rajan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 22 sec
Reputation Power: 14
Send a message via MSN to Shiju Rajan Send a message via Yahoo to Shiju Rajan

hi,
can you tell me ,how to set session variables and how to retrive it in subsequent pages?

i want to set username and password session variables from login page for tracking the user in my site.


Thanks in advance



------------------
shiju

Reply With Quote
  #2  
Old March 31st, 2000, 02:00 PM
ecchu79 ecchu79 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Posts: 6 ecchu79 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to ecchu79
There are two ways that you could do it. One is store the session variable into a table, and then on each page at the very top, have a function that checks to see if the session is valid.
Another way to do it is come up w/ ur own encryption scheme and then check if the encrypted session is valid.
You'll have to pass the sessionID and whatever else you are going to check to each page. You can do this by passing the information in the URL

Reply With Quote
  #3  
Old April 1st, 2000, 03:10 AM
Shiju Rajan's Avatar
Shiju Rajan Shiju Rajan is offline
.Net Developer
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: London
Posts: 987 Shiju Rajan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 22 sec
Reputation Power: 14
Send a message via MSN to Shiju Rajan Send a message via Yahoo to Shiju Rajan
Hi,
Thank you for helping me.

Can you give me an example of session tracking?

Reply With Quote
  #4  
Old April 1st, 2000, 10:58 AM
amodi amodi is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Location: Gorakhpur,U.P.,India
Posts: 24 amodi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have implemented session tracking in an application of mine which i am detailing below. hope u find it useful...

i am using a combination of the username and the ip address of the user to generate a session variable from page to page. this string is encrypted using md5

this works fine without any problems...

Reply With Quote
  #5  
Old April 1st, 2000, 02:18 PM
Shiju Rajan's Avatar
Shiju Rajan Shiju Rajan is offline
.Net Developer
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: London
Posts: 987 Shiju Rajan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 22 sec
Reputation Power: 14
Send a message via MSN to Shiju Rajan Send a message via Yahoo to Shiju Rajan
Hi amodi,

i am not clear your explanation.can you show me a couple of lines of code.




[This message has been edited by Shiju Rajan (edited April 01, 2000).]

Reply With Quote
  #6  
Old April 1st, 2000, 11:49 PM
ecchu79 ecchu79 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Posts: 6 ecchu79 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to ecchu79
You can check out an article that www.phpbuild.com has on session management. It'll probably have some code examples as well.

[This message has been edited by ecchu79 (edited April 01, 2000).]

[This message has been edited by ecchu79 (edited April 01, 2000).]

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > tracking the user using session variables

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap