Forum Moderators: coopster

Message Too Old, No Replies

Login mix with session and .htaccess

Login mix with session and .htaccess

         

c0nsur

7:32 pm on Aug 4, 2003 (gmt 0)

10+ Year Member



is he anyway i could do a simple login in php with a normal form and go through the .htaccess without any prompt if its ok?

vincevincevince

7:34 pm on Aug 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



i believe so - try using header("Location: [username:password@domain...]

c0nsur

7:36 pm on Aug 4, 2003 (gmt 0)

10+ Year Member



ok then if its working could we hide the user/pass in the url? :P

vincevincevince

7:40 pm on Aug 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



now your question is more tricky indeed
i suggest not using .htaccess and using php for all your security - a nice wee module that you can <?php include("security.inc");?> at the top of each page should do the trick ;)

c0nsur

7:44 pm on Aug 4, 2003 (gmt 0)

10+ Year Member



thanks for answering so fast

i know bout including a secure module to check everything
but i was just wondering if it was possible
cause my credit card company that i use told me theres no business between us and me if theres no htacces lol

so thats the story :P

vincevincevince

7:47 pm on Aug 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



i've stickied you my advice