what i would suggest is that u rename the html files to something else and
then place them in directories for the various users. then, as a user logs on,
just goto the directory(which could be the code or name of the user.) and read
the file(which is essentially html, but not with the same extension), read the
file, and give an out.println("/*content of file thru java.io.*/");
which will give your file as the output, but will not give the url of the
file. so, dont redirect the user to the file, but instead read it and output
it. sound safer?
love always,
Abhishek Shodhan.
Thomas Schuchert <[EMAIL PROTECTED]> wrote:
I'd put the username recieved from starting page in a cookie named
specific to your app.
Maybe 'com.siegor.myApp.user' = ...
Every page you can recieve from outside can check, if cookie is present
if not redirect to index.html
Hasta
/*************************/
Thomas Schuchert
Cyberconsult
Beratungsgesellschaft f�r Neue Medien mbH
[EMAIL PROTECTED]
030 - 39 99 05 46
/*************************/
> -----Urspr�ngliche Nachricht-----
> Von: Efrain Gutierrez [SMTP:[EMAIL PROTECTED]]
> Gesendet am: Freitag, 28. April 2000 17:38
> An: [EMAIL PROTECTED]
> Betreff: protect html files
>
> I made a html Log In Page where the user put his log Name and
> Password...
> i made this the index.html page...
> i check the password and if it's correct i send a redirection to the
> main
> page...
> but what i want to add it's this...
> before the redirect create a session and create a variable to the
> session
> with the user name..
> there it's no problem with all that..
> but how i protect the other pages that if don't have the session
> variable
> with the user name..
> don't let this person enter to any page and redirect to the log in
> page..???
>
> because i can redirect to a servlet an check...
> but if the user type the direct path to the main page for example how
> i can
> protect..??
>
> please.. tell me the best way to do this..!!
>
> TIA
>
> and Thanks for your help...
>
> Greeting from Mexico...to everybody
> _______________________
> Ing. Efrain Gutierrez Cts
> Programador/Sistemas
> SIECOR de Mexico
> Reynosa,Tamps.MX
> Phone 052 (89) 210987
> Phone 052 (89) 210900 Ext 8448
> Fax 052 (89) 210963
> [EMAIL PROTECTED]
>
> ICQ# 2293612
> http://go.to/efrain & http://efrain.go.to
>
> Todos los d�as preg�ntate �Cu�nto gozo con lo poco que tengo?,
> y no sufras por lo mucho que anhelas...
>
> ______________________________________________________________________
> _____
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
> http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
____________________________________________________________________
Get free email and a permanent address at http://www.amexmail.com/?A=1
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html