PDA

View Full Version : Regarding storing visited urls



sujata_ghosh
03-27-2008, 07:56 AM
Hi to all!

I would like to store all visited URLs, visited by a user on each time he/she come to our website.

at the end we will show him./her the viisted urls he has done already in a list.

can this be done using cookie using Javascrtip?

can any one help me to find a readymade script or some sort of code?

Thanks in advance.

codeexploiter
03-27-2008, 08:18 AM
Theoritically you can use cookies for this job but cookies has lots of disadvantages like the user can remove cookies and you end with erroneous result or user doesn't allow cookie at all. The user can set their browser in a manner that it allows JavaScript but not accept any cookies.

I feel it is better if you look for a server-side base solution which can be hooked to the user session simply. If you are not planning to store these links for later usage you can do it using session variables itself.

sujata_ghosh
03-27-2008, 09:34 AM
thank friend for the reply!

this is our site:
http://www.kshitij.com/

we don't use database. we just want where ever link a visitor visit from here in a active session only store them and show him at the end when he will quite from our site.

so please advice which one will be better.

do you have any cookie script or others, which can solve the purpose?

Its very urgent. I need some help definitely

Thanks.