PDA

View Full Version : Save current url to cookie


Valter
09-11-2006, 01:28 AM
When user click some link his current location is saved to cookie on his PC.

At another place we make redirection to the saved url.

Thing I'm missing is:

vbsetcookie('savedurl', X);

What goes in the place of X?

Thanks.

Guest190829
09-11-2006, 01:35 AM
When user click some link his current location is saved to cookie on his PC.

At another place we make redirection to the saved url.

Thing I'm missing is:

vbsetcookie('savedurl', X);

What goes in the place of X?

Thanks.

Do you mean:


$_SERVER['HTTP_REFERER']


?

Valter
09-11-2006, 02:21 AM
Yes, that's it. Works perfect.

Thank you sir! :)