Previous Thread
Next Thread
Print Thread
Rate Thread
Anonymous #205540 10/19/2000 3:06 PM
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Well, if you are on a server that loses files then that would be bad[]/w3timages/icons/wink.gif[/]. But then sessions would be the last of your problems[]/w3timages/icons/laugh.gif[/].

Sessions work something like cookies, yes. All user profile info will still be stored in the database, sessions just track you while you visit the site.

How it works right now is you log in, and I set a cookie that has your username, encrypted password and language preference on your machine. Each time you request another page I grab this info from your cookie.

If you use sessions, in the php version this info is stored in a temporary file on the server. So instead of retreiving the info from your cookie, we grab it from the temp file.

There are 2 ways that sessions can work. One, you pass the session id (which points to the temporary file) to each script. Two, you set a cookie with the session id. So, we grab the session id from your cookie, and then grab the other info from the session file.

Hopefully that makes some sense. You will be able to choose either method (all cookies, sessions with no cookies, or sessions with cookies) for your users.


UBB.threads Developer
Sponsored Links
Entire Thread
Subject Posted By Posted
Session support? willym 10/17/2000 8:16 PM
Re: Session support? Rick 10/17/2000 11:54 PM
Re: Session support? The Team 10/19/2000 7:51 AM
Re: Session support? Rick 10/19/2000 2:45 PM
Re: Session support? Rick 10/19/2000 2:49 PM
Re: Session support? Rick 10/19/2000 5:03 PM
Re: Session support? Rick 10/19/2000 5:15 PM
Re: Session support? PeelBoy 10/19/2000 5:55 PM
Re: Session support? Rick 10/19/2000 6:14 PM
Re: Session support? PeelBoy 10/19/2000 6:20 PM
Re: Session support? a33 10/19/2000 6:39 PM
Re: Session support? The Team 10/19/2000 6:46 PM
Re: Session support? - edited PeelBoy 10/19/2000 7:00 PM
Re: Session support? a33 10/19/2000 7:03 PM
Re: Session support? Rick 10/19/2000 7:10 PM
Re: Session support? - edited The Team 10/19/2000 7:33 PM
Re: Session support? - edited The Team 10/19/2000 7:35 PM
Re: Session support? The Team 10/19/2000 7:37 PM
Re: Session support? The Team 10/19/2000 7:38 PM
Re: Session support? a33 10/19/2000 8:10 PM
Wrong.. PeelBoy 10/19/2000 8:16 PM
Re: Session support? The Team 10/19/2000 8:28 PM
Re: Session support? PeelBoy 10/19/2000 8:38 PM
Re: Wrong.. The Team 10/19/2000 8:40 PM
Re: Wrong.. PeelBoy 10/19/2000 8:55 PM
Session support in PHP3/PHP4 Sharif 10/19/2000 9:00 PM
Re: Wrong.. The Team 10/19/2000 9:05 PM
Re: Wrong.. - edited PeelBoy 10/19/2000 9:19 PM
Re: Wrong.. The Team 10/19/2000 9:32 PM
Re: Wrong.. PeelBoy 10/19/2000 9:47 PM
Re: Wrong.. The Team 10/19/2000 9:51 PM
Re: Wrong.. Eileen 10/19/2000 9:52 PM
Re: Wrong.. Rick 10/19/2000 9:53 PM
oh one last thing.. PeelBoy 10/19/2000 9:54 PM
Re: oh one last thing.. The Team 10/19/2000 9:56 PM
Re: oh one last thing.. Rick 10/19/2000 9:59 PM
Re: Wrong.. The Team 10/19/2000 10:01 PM
Re: Wrong.. PeelBoy 10/19/2000 10:06 PM
Re: Wrong.. Rick 10/19/2000 10:06 PM
Re: Wrong.. The Team 10/19/2000 10:08 PM
Re: Wrong.. The Team 10/19/2000 10:10 PM
Re: Wrong.. Eileen 10/19/2000 10:18 PM
Re: Wrong.. The Team 10/19/2000 10:24 PM
Re: Wrong.. Eileen 10/19/2000 10:28 PM
Re: Session support in PHP3/PHP4 Rick 10/19/2000 11:06 PM
Re: Session support in PHP3/PHP4 The Team 10/19/2000 11:26 PM
Re: Session support? The Team 10/20/2000 12:14 AM
Re: Session support in PHP3/PHP4 The Team 10/20/2000 12:18 AM
Re: Session support? The Team 10/20/2000 12:25 AM
Re: Session support? The Team 10/20/2000 12:32 AM
Re: Session support? The Team 10/20/2000 12:38 AM
Re: Session support? The Team 10/20/2000 12:40 AM
Re: Session support? The Team 10/20/2000 12:41 AM
Re: Session support? - edited The Team 10/20/2000 12:45 AM
Re: Wrong.. The Team 10/20/2000 12:52 AM
Re: Wrong.. The Team 10/20/2000 12:53 AM
Re: oh one last thing.. The Team 10/20/2000 1:01 AM
Re: Wrong.. The Team 10/20/2000 1:03 AM
Re: Wrong.. The Team 10/20/2000 1:06 AM
Re: Session support? PeelBoy 10/20/2000 1:19 AM
Re: Session support in PHP3/PHP4 PeelBoy 10/20/2000 1:23 AM
Re: Session support? Rick 10/20/2000 1:30 AM
Re: Session support? The Team 10/20/2000 2:06 AM
Re: Session support? The Team 10/20/2000 2:08 AM
Re: Session support? PeelBoy 10/20/2000 2:16 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,153
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 464
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 13
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)