Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. frodiggs

    securing folders php -ooops!

    Anikin you recent post to my other thread seems to make a bit more sense, thanks! is the problem here becuase i do not have the file you mentioned session_restricted.php?
  2. frodiggs

    session variables and crack! help!

    i think i have a better idea. i somehow have two threads with the same topic, oops! sorry. this last example you gave me makes sense. anyway, when you say include this file session_restricted.php in all secured files do you mean reference them? i'm not sure how you include the...
  3. frodiggs

    securing folders php -ooops!

    thanks. i can still access the restricted pages with no redirect. very odd. if i place the code-> session_start(); if (!$_SESSION[login]) Header("Location: /"); at the begining of a page, before the HTML should it not redirect the page to the var in the "location:? i have been...
  4. frodiggs

    session variables and crack! help!

    i do sort of but my login page works fine so i am confused. i am successfully login them in, taking them to a URL in SQL and creatinga session with the value accesslogin. now i just want to restrict all pages when the user has not logged in, redirecting them to the login page. as far as your...
  5. frodiggs

    securing folders php -ooops!

    i must be stupid or crazy or both. i know i am very new to php but i put this at the beginning of the HTML page <?php session_start(); if(!$_SESSION[accesslogin]) Header(&quot;login.php&quot;); ?> <html> <head> and nothing happens. am i doing this all wrong? could it be settings in php.ini? my...
  6. frodiggs

    securing folders php -ooops!

    i think i need to check my php.ini. i can still pull up these pages without logging in. like i mentioned i am basically taking your advice and creating a session for each login. (specific session name- not a variable though) and i presume checking for that session at the begining of each page.
  7. frodiggs

    session variables and crack! help!

    hmm. actually if the login is ok the SQL db determines the URL/path. the login.php connects to mssql so i think we may be talking about 2 different things (i could be wrong) am i right to create a session name after successful login and then on each page in my directory check for the session...
  8. frodiggs

    securing folders php -ooops!

    thanks. i got really busy with other things. ill try this. i'm getting alot of code and a bit confused at the same time. this is a snippet of the code from the login page-> if (($variable2 != $loginname) OR ($variable3 != $passwd)) { echo &quot;<font...
  9. frodiggs

    session variables and crack! help!

    Hey, I'm going bonkers with this one. Below I am creating a session named 'accesslogin' once the user successfully logs in. This is the latter part of the code... if (($variable2 != $loginname) OR ($variable3 != $passwd)) { echo &quot;<font size=4...
  10. frodiggs

    Connecting to MySql

    i have a bit of simple code you can hack. <? $hostname = &quot;yoursite.com&quot;; // Host name. $username = &quot;username&quot;; // Your database login name $password = &quot;password&quot...
  11. frodiggs

    securing folders php -ooops!

    right that makes sense. my login form is login.htm and POSTS to login.php. i would create the session in the php page i assume. also when you say 'At the beginning of each page, check that the variable has been set, if not take them to the login page.' you mean the pages in my 'secure' folder...
  12. frodiggs

    securing folders php -ooops!

    i have created a basic php login script that connects to mssql and takes users to a specific path/url on my IIS5 box if the password and username match. i now realized that once you get to the url you can easily bookmark it and avoid the login page alltogether. how would i restrict access to...
  13. frodiggs

    HTTP 405 - Resource not allowed

    newbie here doing a basic login using php4 and mssql. I am getting 'HTTP 405 - Resource not allowed' my login page is login.htm defined to 'post' to login.php4. I installed php4 on IIS5 with Win2k Server. My site 'home directory' tab in IIS lists script source access and permission to execute...
  14. frodiggs

    http 405 - resource not allowed

    newbie here doing a basic login using php4 and mssql. I am getting 'HTTP 405 - Resource not allowed' my login page is login.htm defined to 'post' to login.php4. I installed php4 on IIS5 with Win2k Server. My site 'home directory' tab in IIS lists script source access and permission to execute...
  15. frodiggs

    load movie

    i'm running in circles with the tell target and load movie concepts. i have a small flash movie (in a table) and am trying to load an entirely different (larger) movie from a button on the smaller movie. the two movies are in seperate HTML pages. ive used load movie using layers and targets but...

Part and Inventory Search

Back
Top