This topic is locked

protect html files in different folder

1/12/2008 1:47:35 PM
PHPRunner General questions
D
dacker author

I made a login page and I want to keep unregistratered users from accessing a few html files within the same folder.

Can this be done?
Currently a user could bypass the login page by just typing the www.somewebsite.com/folderName/somefile.html into the URL and BANG! Their looking at pages I don't want them to see unless they have an account.

I want to prevent that from happening. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=7256&image=1&table=forumtopics' class='bbc_emoticon' alt=':unsure:' />
Thanks,

TiredGuy

S
slodigia_lem 1/13/2008

I made a login page and I want to keep unregistratered users from accessing a few html files within the same folder.

Can this be done?
Currently a user could bypass the login page by just typing the www.somewebsite.com/folderName/somefile.html into the URL and BANG! Their looking at pages I don't want them to see unless they have an account.

I want to prevent that from happening. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=24852&image=1&table=forumreplies' class='bbc_emoticon' alt=':unsure:' />
Thanks,

TiredGuy


Hi, I had the same issue and for now I have protected the files adding to the folder the .htaccces file
Rgds

X
xliner 1/13/2008
D
dacker author 1/13/2008

Review code snippet seen under http://www.asprunner.com/forums/index.php?showtopic=5275


Ok. I did this but now I get the error "Your session has expired. Please login again."

The session.save_handler is set to files.
Any thoughts?