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-07-2005, 12:32 PM PHP5 issues
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Trades: 0
Specifically sessions

I have a site that resides on 2 servers (site is a copy of itself) (one local and the other an ISP). the ISP runs php 4.3 or so and works fine so no problems really, yet my local server is now running php5 and has totaly messed my sessions up.

I have a login screeen that will assign your details into a session once you login so you can safely browse around the admin area (or wherever) without having to log in all the time. but under php5 i am always redirected to the login screen even though I have authenticated myself instead of been redirected to the page I came from.

I have several session vars floating about but the main one in this insatance is

$_SESSION['admin']['user'] which is setup on a successfull login. However under php5 it never gets read by any other page, moreso it fails to find anything stored under such a session var in other pages.

Yes my session_start is accessed by each page (built into my application to be that way), yes I have attempted to edit php.ini and change the session.save_path = "/var/lib/php/session" to simpler places like /tmp, I have also called methods like session_write_close() but its just having a laugh at me.

In short i think something has seriously changed for I cannot fathom why under php4 it works fine yet under 5 its fails. And theres me thinking it should be backward compatible and what have you.

Certainly scratching more hair away

Ibbo
__________________

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

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

Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
 
Register now for full access!
Reply     « Reply to PHP5 issues
 

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.08090 seconds with 12 queries