Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 11th, 2003, 08:23 PM
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sessions

I had sessions working and I made a few changes when installing imp and now I cannot get them to work again. i tried the examples from the pro book, and they won't run so i'm guessing its something wrong with my configuration rather than the session itself. Anyways here's a link to my info http://www.16bit-psychosis.net/info.html If anyone sees any errors please help, cause i got no clue right now
 
Old June 19th, 2003, 02:09 PM
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Did you ever get your sessions working? I noticed you had both user and files for session storage mgmt. It should really be just one or the other, not both.

Files is the easiest way to go -- PHP handles everything for you -- reading, writing, deleting, etc... One caveat -- the session save dir MUST exist, and have permissions set that your webserver user (or whatever user PHP runs as) can read and write in that directory.

User is a little more difficult, but gives you the flexibility to store session data however you want. Most people use custom session handler functions to store session data in a database.

In the end, it's up to you. I suggest starting out with "files" and then moving to "user" if you want the added flexibility.


Take care,

Nik
http://www.bigaction.org/




Similar Threads
Thread Thread Starter Forum Replies Last Post
sessions p2ptolu Classic ASP Components 3 March 17th, 2005 06:31 AM
Sessions 2540EA BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 February 20th, 2005 05:42 AM
Mixing classic ASP sessions with ASP.NET sessions scorpion_king General .NET 2 August 4th, 2004 08:20 AM
Sessions aeejai Beginning PHP 3 April 22nd, 2004 01:51 PM
Help sessions ittorget Pro VB 6 2 April 20th, 2004 02:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.