Click to See Complete Forum and Search --> : Script for subweb log in?


ath3naeum
10-31-2003, 10:24 PM
Hi,

I wanted to know if there is a script I could use to log into a sub web directly. Currently I am using a loggin script that directs certian users to different subwebs, however once at the sub web, they need to reenter the login information again.

I guess my question is, is there a way to login directly to a subweb with javascript? Thanks.

SnowCrash
11-01-2003, 04:19 AM
I'm not sure if I understand your post right, but you could use a cookie. But don't store the password in the cookie!

Only set the cookie value to logged in = true/false after the first login. Then get the cookie on second login to check if already logged in.

But it would be better to handle this on the server-side anyway, because everyone can read your source code. With a server scripting language such as php or asp you can easily handle this.