PHP Session Issue - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Programming > PHP Development

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-25-2009, 11:20 AM   #1 (permalink)
Junior Member
 
Join Date: Mar 2008
Posts: 2
Default PHP Session Issue

I'm having an issue with one section on my website dealing with sessions. Now I know that myself and two other individuals can get it to work without any issues on IE, FF, or other browsers, however, others cannot get it to work. Maybe someone can help me in the right direction?

Code:
<?php
session_start();
include "db.php";
?>


<?php
           if(!empty($pilotid)){
           ?>
           <input type="submit" name="Submit" value="Submit Bid">       
          <? } ?>
This Submit button is where the issue is at. It is not showing up for everybody like I mentioned before. Any ideas?
mlaiter is offline   Reply With Quote
Sponsored Links
Old 01-06-2010, 06:58 PM   #2 (permalink)
Junior Member
 
Join Date: Jan 2010
Posts: 4
Default Re: PHP Session Issue

what is the code inside db.php? I cant tell whats going on if i cant see all the code. If you are expecting $pilotid to come out of the user's session, you would be better off retrieving it as $_SESSION['pilotid'] as the method you currently use is relying on register_globals being enabled, which is a security risk.
vanguard is offline   Reply With Quote
Old 01-06-2010, 08:57 PM   #3 (permalink)
Junior Member
 
Join Date: Mar 2008
Posts: 2
Default Re: PHP Session Issue

Actually, this issue was resolved, sorry for not putting the resolved tag on it. I had one mistake somewhere and it was found and fixed.
mlaiter is offline   Reply With Quote
Old 06-29-2010, 08:47 AM   #4 (permalink)
Junior Member
 
Join Date: Jun 2010
Posts: 20
Default Re: PHP Session Issue

First, check your web server logs for error. Make sure php error reporting is on. Whenever you get a blank page, you've got an error.

Are you calling session_start(); at the top of each of your files? Presuming you have a form that is posting 'set1' to the file in which you are setting the session variable, your syntax seems to be okay...

Edit: If you have server access, the apache logs are usually someplace like /usr/local/apache/logs. If you stick a file containing the following code in your webroot, it will tell you where logs, config files, etc. reside -

<?php
phpinfo();
?>

Also, try putting error_reporting(E_ALL); at the top of your php files. It should cause errors to go to the browser.

If all else fails, go with brute-force - add a few echo statements through your code to see how far it's getting before it bails out.
alstonwillman is offline   Reply With Quote
Old 07-05-2010, 03:10 AM   #5 (permalink)
Junior Member
 
Join Date: Jun 2010
Posts: 22
Default Re: PHP Session Issue

A "secure" session ID should be at least 128 bits in length and sufficiently random. Cookies can also be used to identify a user, but care must be taken in using cookies. PHP provides a straightforward answer. PHP provides a straightforward answer. For reasons best known to the early Joomla designers, Joomla attempts to set the session ID to a random value that is generated within Joomla software.
Wenrich is offline   Reply With Quote
Old 07-09-2010, 03:36 AM   #6 (permalink)
kaa
Junior Member
 
Join Date: Jan 2010
Posts: 16
Default Re: PHP Session Issue

Thanks for the info, I appreciate it.
kaa is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 03:16 PM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting