LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-30-2010, 12:47 PM   #1
olegk25
LQ Newbie
 
Registered: Jun 2009
Posts: 6

Rep: Reputation: 0
Weird PHP warning while session_start()


Hi,

with the simpliest php page

PHP Code:
<?php
session_start
(); // start up your PHP session!
?>
I have the following warning:
Code:
Warning: s in /home/Web-home/htdocs/ps.php on line 2 Call Stack: 0.0002 66640 
1. {main}() /home/Web-home/htdocs/ps.php:0 0.0003 66640 
2. session_start() /home/Web-home/htdocs/ps.php:2 
Dump $_SERVER $_SERVER['REQUEST_METHOD'] = 'GET' $_SERVER['REQUEST_URI'] = '/ps.php' $_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Ant.com Toolbar 2.0 Firefox/3.6.8' Dump $_REQUEST $_REQUEST['PHPSESSID'] = '3vcd5c3km29i6ddiagrs68ligv8u0m77' 
Warning: U in Unknown on line 0 Warning: U in Unknown on line 0
What could be the problem? Something is with PHP/Apache setup?

PHP Version 5.2.5
IHS 7.0.0.7 (Apache 2) + ldap
Session Support enabled
 
Old 07-30-2010, 03:33 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,136

Rep: Reputation: 98
Hi,

From what I can see of this cookie method, it's incredibly vulnerable to encoding errors and can have issues interacting with certain file systems. I would advise taking a look at the php manual page for this, a lot of people have had various errors, yours maybe related to one of theirs and the solution the same.
 
Old 08-02-2010, 04:33 AM   #3
olegk25
LQ Newbie
 
Registered: Jun 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks, r3sistance!

the problem was in session.save_path parameter
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Warning after upgrading from PHP 5.2.1 to 5.3.1 on CentOS rossie Linux - Newbie 4 12-20-2009 03:18 PM
weird PHP compile issue- module shows in "php -m" but not in phpinfo call hbbtstar Linux - Software 1 08-28-2009 04:14 PM
Migrated New Server Error = Warning: session_start() [function.session-start]:....... jim_cliff11 Linux - Server 1 02-16-2007 09:04 AM
[php] session_start() <-- not logical, burdensome firetankiee1 Programming 1 05-08-2006 05:05 AM
PHP: Call to undefined function: session_start() wellmt Linux - Newbie 2 06-01-2004 06:50 AM


All times are GMT -5. The time now is 12:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration