Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 04-24-2005, 05:57 PM Unwanted Redirection
Manson's Avatar
Super Talker

Posts: 106
Location: South Wales, UK
Trades: 0
Hey all,

I have this following script to redirect when the cookie timesout:

PHP Code:
if(isset($_COOKIE['cookie_info'])){ 

//Cookie is set and display the data 
   
$cookie_info explode("-"$_COOKIE['cookie_info']);  //Extract the Data 
   
$username $cookie_info[0]; 
}else { 
// redirect
header('Location: login.php');

but for some reason, people using LANs are being instantly redirected back to the login page when they login.

Can anyone please explain why this is happening and tell me how to over come this problem?

Thanks in advance
Manson
__________________
Admin of
Please login or register to view this content. Registration is FREE
Manson is offline
Reply With Quote
View Public Profile Visit Manson's homepage!
 
 
Register now for full access!
Old 04-24-2005, 11:23 PM
Average Talker

Posts: 17
Trades: 0
Is it possible that those people on LAN's can't enable cookies? Or their network administrator has the security settings too high? Sorry not a network person, just a thought.
__________________
Ed Charkow

Please login or register to view this content. Registration is FREE
||
Please login or register to view this content. Registration is FREE
||
Please login or register to view this content. Registration is FREE
||
Please login or register to view this content. Registration is FREE
rewq007 is offline
Reply With Quote
View Public Profile
 
Old 04-25-2005, 08:35 AM
Manson's Avatar
Super Talker

Posts: 106
Location: South Wales, UK
Trades: 0
ive asked about if cookies are enabled etc and they said they are. so it has to be the code.
__________________
Admin of
Please login or register to view this content. Registration is FREE
Manson is offline
Reply With Quote
View Public Profile Visit Manson's homepage!
 
Reply     « Reply to Unwanted Redirection
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11395 seconds with 12 queries