The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

PHP Sessions problems by waveydavey 2005-11-29 06:19:23
Heeeelp ! ! !
Sessions not working. Can anyone shine some light on this please ?
Symptom: very simple script does a session_start(); then $_SESSION['poopy']++;
echo "Viewed" . $_SESSION['poopy'] . " times";

Refreshing the page should increment poopy. Instead, each pageview creates THREE session files in /tmp, and always thinks it has just created the session variable.

Server : Linux 2.6.11-1.1369_FC4
Webserver: Apache 2.0.5x
Php: 5.0.4
php.ini session stuff:
[Session]
session.save_handler = files
session.save_path = "/tmp"
session.use_cookies = 0
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = 0
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 5

Any ideas ?
[ Reply ]
  set session.use_cookies = 1 (and restart apache) by hekatombe2005-11-29 06:26:07

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)