PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
tags when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
I am having a trouble with sessions. The code works fine in Opera, but in Mozilla I get into trouble ( this might be a mozilla bug, but what do I know ).
I have a login in page as follows.
<?php
session_start();
$page;
//a session has not been created
if( !isset( $_SESSION[ 'pageSession' ] ) ){
//redirect back to login
}else{
//show page
}
?>
For some reason this works fine Opera, but not in Mozilla In Mozilla the session is active when the user is authenticated because it prints isset, but when the user comes to the index page he is redirect back to the login page. Has anyone encountered this problem before? I am doing something wrong? If this is a commen problem is there a work around?
Thank you. I didn't know the <meta> tags had be inside the <head> tag and there where some other bugs there to. Now everything is working just fine in Mozilla as well.
Here is my new and improved code which produces valid 1.0 transitional XHTML if anyone is interrested