PDA

View Full Version : Keeping userinfo and use them with cookies


romain_26
11-27-2002, 09:59 PM
Hi everybody,

I am really a newbie in web creation and javascript stuff and I need help or advices from you !

I want to have a web page like a form where a user can enter his name, last name and some options (like yes/no), then store those information in a cooky and then use this informations to redirect the user to a certain web page, some thing like this

Cooky
name : john
lastname : doe
option: yes


web page

if cooky.option=yes
then go to http:\\......
else go to http:\\...


Can you help me to do this ?, please answer using my email.

chrismiceli
11-27-2002, 11:11 PM
your code is not a cookie, that is the complete wrong syntax, unless they changed on me last night.

romain_26
11-27-2002, 11:17 PM
Yes I know that it is absolutly not some javascript or cooky code!

It si just an example in pseudo code of what I want

whammy
11-27-2002, 11:34 PM
The first question I would ask is what page do you want to redirect the user to, depending on the cookie?

Basically what are you trying to accomplish?

Check out this tutorial to start with:

http://www.javascriptkit.com/javatutors/cookie.shtml

:D

romain_26
11-28-2002, 01:30 PM
In fact it is for my Intranet.
Because the name 'Intranet' have been added to our internal DNS some VPN users can't use the Intraner unless the web page are accessed by the ip address.
That's why I need that the user give the information to the intranet that he is a vpn user and not an 'Internal' user.

Also, I can 'personlize' (I don't if this word exist in english ..) the Intranet using their name when their enter certain web pages.