|
Posted by qwert on 09/19/05 13:09
Neil Trigger schrieb:
> Yes... almost right.
>
> When a user clicks on any page, I need to check firstly the permissions of
> that page and then cross refernece it with thether they are logged in. Then
> if they ae not logged in and the page requires them to be then they get
> redirected.
>
> Once redirected, they decide to login and on the login page they have a link
> saying "go back to where you were" or something similar, which takes them
> back to the page that they were originally redirected away from.
>
> I have the session script in the top.php include which goes on every page of
> the site. I also have in that script a way to disable it so that pages like
> the login script and error pages do not get recognised and do not interfere
> with the session being written.
>
> Still baffles me though.
>
ok, but why don't you just use $_SERVER['referer'] when you check the
permissions and decide to rediredt the user to a loginpage ?
this way the user would get back to the page where he click on the link
to the article (but redirected him to the loginpage) ...
this way the visitor just had to reclick the link to the article to view
it (since he is now logged in) ...
i think what you want is that the link you provide after the user is
logged in takes the user directly to the article ... hmm ...
isn't there a way to catch the link which brought the user to this page ..
i'll check that out and tell you about my results later ...
-----
qwert
Navigation:
[Reply to this message]
|