freelanceprogrammers.org Forum Index » PHP
how to check from where a user just open a particular page o
Joined: 22 Aug 2005
Posts: 3
how to check from where a user just open a particular page o
hi again,
Thanks for the help you people provided related to the Session
handling, i m working on it.
I got another question.
how can i check from where a user has open my site ?
Like I want to restrict a user from accessing a particular page on my
site, if he/she is not from another particular page on my site than
that person is not allowed to see that page. is there a function or
object that i can use like header(), include() ?
Thanks in advance for anyhelp you people provide.
Shakeeb.
Joined: 20 Jul 2005
Posts: 4
how to check from where a user just open a particular page o
Try:
Echo $_SERVER[`HTTP_REFERER`];
Note that this is not a safe way of checking where a user comes from. But
then again, there is no other / better way as far as I`m aware of.
Good luck
-----Oorspronkelijk bericht-----
Van: php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com] Namens
Sher
Verzonden: dinsdag 23 augustus 2005 15:34
Aan: php-objects@yahoogroups.com
Onderwerp: [php-objects] how to check from where a user just open a
particular page on my site.
hi again,
Thanks for the help you people provided related to the Session
handling, i m working on it.
I got another question.
how can i check from where a user has open my site ?
Like I want to restrict a user from accessing a particular page on my
site, if he/she is not from another particular page on my site than
that person is not allowed to see that page. is there a function or
object that i can use like header(), include() ?
Thanks in advance for anyhelp you people provide.
Shakeeb.
PHP Data object relational mapping generator - http://www.meta-language.net/
Yahoo! Groups Links
Joined: 25 Feb 2005
Posts: 10
how to check from where a user just open a particular page o
Look into $_SERVER[`HTTP_REFERER`].
Sesh Madaboosi CISA, CSSA
Coherent Business Solutions LLC
www.cobizsolutions.com
Sher <sha_sher@...> wrote:
hi again,
Thanks for the help you people provided related to the Session
handling, i m working on it.
I got another question.
how can i check from where a user has open my site ?
Like I want to restrict a user from accessing a particular page on my
site, if he/she is not from another particular page on my site than
that person is not allowed to see that page. is there a function or
object that i can use like header(), include() ?
Thanks in advance for anyhelp you people provide.
Shakeeb.
PHP Data object relational mapping generator - http://www.meta-language.net/
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "php-objects" on the web.
To unsubscribe from this group, send an email to:
php-objects-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Non-text portions of this message have been removed]
Joined: 24 Aug 2005
Posts: 3
how to check from where a user just open a particular page o
Hi,
There are times when the http referrer maybe forged. In which case
you cannot entirely rely on $_SERVER[`HTTP_REFERER`].
Another way to track this would be using sessions. Store the pageid
as a session variable and look for it on the target page.
Peace,
Shoan.
On 23-Aug-05, at 7:04 PM, Sher wrote:
> hi again,
>
> Thanks for the help you people provided related to the Session
> handling, i m working on it.
>
> I got another question.
> how can i check from where a user has open my site ?
>
> Like I want to restrict a user from accessing a particular page on my
> site, if he/she is not from another particular page on my site than
> that person is not allowed to see that page. is there a function or
> object that i can use like header(), include() ?
>
> Thanks in advance for anyhelp you people provide.
>
> Shakeeb.
>
>
>
>
>
>
> ------------------------ Yahoo! Groups Sponsor --------------------
> ~-->
> <font face=arial size=-1><a href="http://us.ard.yahoo.com/
> SIG=12hjov8ul/M=362131.6882499.7825260.1510227/D=groups/
> S=1705006764:TM/Y=YAHOO/EXP=1124811335/A=2889191/R=0/SIG=10r90krvo/
> *http://www.thebeehive.org
> ">Get Bzzzy! (real tools to help you find a job) Welcome to the
> Sweet Life - brought to you by One Economy</a>.</font>
> --------------------------------------------------------------------
> ~->
>
> PHP Data object relational mapping generator - http://www.meta-
> language.net/
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







