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 01-13-2009, 10:32 AM Login problem in IE
Junior Talker

Posts: 2
Trades: 0
Good day. I and any members on my site have problem with login. Via firefox all working, but in IE I try to login and it will say you are redirecting to your account - it normal, but after 1 second it turn me back and not log in. I can try it many times, its the same. But If I delete all cookies I can Login one time, than I press logout and than I can`t login again. Only in IE. Where can be problem please?
KingError is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-13-2009, 11:09 AM Re: Login problem in IE
Skilled Talker

Posts: 79
Location: Devon, England
Trades: 0
Instead of using cookies for your log in. I suggest using session cookies. Session cookies are stored on the server instead of the users computer. I'm pretty certain this will fix your problem too. As from what I see your problem lies with IE and it's privacy security or P3P.
__________________
Please add to my Talkupation if I was helpful. Thanks.


Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
paaaaaaaaaa is offline
Reply With Quote
View Public Profile Visit paaaaaaaaaa's homepage!
 
Old 01-13-2009, 11:16 AM Re: Login problem in IE
Junior Talker

Posts: 2
Trades: 0
And where I can Set it please?
KingError is offline
Reply With Quote
View Public Profile
 
Old 01-13-2009, 12:13 PM Re: Login problem in IE
PeachyJuice's Avatar
Super Talker

Posts: 116
Name: Michele T.
Location: Ny, Ny
Trades: 1
You can look up sessions here. But they're really simple, as sessions are very similar to regular php variables. Changing to sessions will make your life easier.
PHP Code:
<?php session_start(); //this MUST always be the first line in the php script

$_SESSION['username'] = 'monkey'
$_SESSION['userid'] = $userid//you can set these to strings or variables

//to get rid of a $_SESSION variable...
unset($_SESSION['username']);

//to get rid of all the session variables, and used to log out
session_destroy;

?>
__________________
Freelance web+graphic designer and PHP developer.

Please login or register to view this content. Registration is FREE
PeachyJuice is offline
Reply With Quote
View Public Profile
 
Old 01-13-2009, 12:43 PM Re: Login problem in IE
NullPointer's Avatar
Will Code for Food

Posts: 2,784
Name: Matt
Location: Irvine, CA
Trades: 0
Sessions are the way to go when it comes to maintaining information about a user over a short term. Unless you set it to expire a session usually remains valid until a user closes his browser. Cookies are useful retrieving information about a user long after they have logged out or there session has otherwise died.

Converting to sessions may solve your browser compatibility issue, but I suspect that there might be a problem with your code considering that IE (even IE6) supports cookies. For future reference posting your code helps us help you
__________________

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
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Reply     « Reply to Login problem in IE
 

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.14983 seconds with 12 queries