Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Linux, Apache, MySQL > Apache Help

Apache Help Post any question relating to Apache here and hopefully someone can help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2005-12-30, 02:02 AM
Junior Member
 
Join Date: Dec 2005
Posts: 1
naycoder
Default

Hello All--

I am pretty positive this problem isn't being generated by my scripts because I have used them on a different (Linux+Apache) server and they worked fine and dandy, but if this problem doesn't pertain to apache+Windoze, I'm sorry for posting in the wrong forum...

Anyways,
I have Windows XP, Apache 2 and PHP 5.1.1 all brand spankin new. I have everything pretty good, but I absolutely cannot get my sessions to work. I have a login script and all my other pages have session_start(); as the first thing but the variables that I set in the login script (i.e. $_SESSION['user']) dont carry over into the other pages.

And when I try to call those variables with errors on, I get an "undefined index" error meaning the variable array isn't set.

I am absolutely befuddled with this one so anything is welcome--

Nay
Reply With Quote
  #2 (permalink)  
Old 2006-01-04, 04:42 AM
Moderator
 
Join Date: May 2004
Location: Portugal
Posts: 143
gesf is an unknown quantity at this point
Send a message via ICQ to gesf Send a message via MSN to gesf Send a message via Skype™ to gesf
Default

Try making a verification first:
Code:
if(isset($_SESSION['user'])){}
Just right after setting this variables, try printing them so you can be sure they were set and have something inside.
A piece of code would help Can you show us ?
__________________
Best Regards,
Gonçalo "GesF" Fontoura

Website : gesf.org
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:08 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.