General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 27th, 2003, 02:22 AM
kenny873 kenny873 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 4 kenny873 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Server not found

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?

Reply With Quote
  #2  
Old February 27th, 2003, 05:10 AM
fakker fakker is offline
The calm b4 the storm
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404 fakker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via Yahoo to fakker
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......
__________________
Matt 'Fakker' Facer

mattfacer.com

Reply With Quote
  #3  
Old February 27th, 2003, 08:16 PM
kenny873 kenny873 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 4 kenny873 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[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>
<? } ?>

Reply With Quote
  #4  
Old February 28th, 2003, 12:16 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 52 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
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:
 $chk = isset($_SESSION['userid']);
if(
$chk == 1){ 


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

Reply With Quote
  #5  
Old March 2nd, 2003, 10:28 PM
kenny873 kenny873 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 4 kenny873 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks...i fix it..
it was apache server problem....

Reply With Quote
  #6  
Old March 3rd, 2003, 07:02 AM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 52 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
What was causing it?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Server not found


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway