|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have two identical php pages BUT one with a session_start();
the page with a session start cannot be found while the original php page w/o session start is working well...anyone know why? |
|
#2
|
|||
|
|||
|
hey kenny873, welcome to the devarticles forums!! Hope you enjoy your stay here at hotel DevArts!!
As for your problem, is there any chance you can post some code, or let us know a little more about the pages... eg: how are they called? are they includes etc? Thanks...... |
|
#3
|
|||
|
|||
|
[PHP]
<?php session_start(); //include_once "lib/game_session.inc"; $fromPage = "/kenny/item_details.php"; //include "lib/game_chk_login.inc"; $chk = isset($_SESSION['userid']); if($chk == 1) { //if (isset($_SESSION['userid'])){ ?> okay , YOU ARE LOGGED IN !!! <a href="/kenny/TestSession/logout.php"> LOGOUT </a> <? } ?> |
|
#4
|
||||
|
||||
|
Kenny.. What are the pages called? and do you have a url we could visit to see what happens when we try to load the pages?
from the code you posted I don't see any reason why it should come up not found, you don't have any redirect code of any type <either meta or header() redirects> that I can see, unless that isn't all of the code.. and also, just a little fyi.. on this piece of code PHP Code:
you could just do if($chk){ just a little fyi, to save you some code.. because if it is set it'll evaluate to be true, or 1.. if not it'll be false.. or 0.. and the if statements will read either one or zero as true or false ![]() |
|
#5
|
|||
|
|||
|
thanks...i fix it..
it was apache server problem.... |
|
#6
|
||||
|
||||
|
What was causing it?
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Server not found |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|