Session login issue


Posted on 16th Feb 2014 07:03 pm by admin

I'm wondering how to fix a problem I'm having with a session-based login system

Say I go to http://www.website.com
The page that processes the login then returns the now-logged-in user to http://www.website.com
Did you know?Explore Trending and Topic pages for more stories like this.
If this person goes to website.com, though, the login page returns them to www.website.com and it seems to be a different session which makes it appear as though they haven't logged in. Then they login twice.

"Well just have the login page return the user to the URL that they came from"
My problem there is that I have other pages on my site which will direct a user back to http://www.website.com -such as my Error 403 page. After a certain period of time, it sends the user to http://www.website.com. If this is a logged-in user who logged in under website.com, it will appear as though they were logged out

Any suggestions?
No comments posted yet

Your Answer:

Login to answer
87 Like 54 Dislike
Previous forums Next forums
Other forums

quotes changing
hi all

in my content

opening quotes " changes to “

close qu

Needing Youtube thumb nail fix.
I have a script on a site that pulls in you-tube videos,
The problem is, that the thumb nails for

Probably a simple error...
I'm getting the error -- Parse error: syntax error, unexpected '{' in /home/content/c/s/t/csteffen24

Php If in MySql query (hiding labels if a field is empty)
Okay, I've been trying to do this for a while, and I'm finally going to ask for help so I can get th

please, need help coding this voting for your favorite car polling system.
hi, my code needs a lot of work, but i want to be able to let users vote on their favorite car, upda

Php - mysql select?
hi, i have this code:

Code: <?php
session_start();
// dBase file
include &quo

Calling strings from other php class
I have test1.php{
$string1;
$string2;
....
... //10 strings in this class <

Expandable Post Code
Hi,

Hope you can help. Which currently I haven't upgraded to connect to a mysql server, so i

extending tidy
I have problem with type-hinting and extending tidy. This code creates error:
Code: class cMyTidy

using file_get_contents??
okay how would i create a script using file_get_contents() in php have it grab search pages 1-20 and

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash