Jump to content

dildolito

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

dildolito's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. the session_cache_limiter is per page. Putting it in the log-off.php will achieves nothing since the last page has been cached already
  2. akrytus - if i refresh the page to were i want the user to go and instead of using the "back" button he will put the last page's url, then the cached paged will show again. am i right? danilo - every page load had the session_cache_limiter. the logg-off code is in the log-off.php
  3. i am using session_cache_limiter('private') in order for the "back" button to work. However I have been trying to get the following effect: if clicking on the 'back' button after logging off (session_destroy + session_unset) i dont want the user to get the cached page... is it possible? Thanks Owen
  4. thanks for your help, obsidian. I hope others will find this post usefull. if anyone has comments , please let me know. this is the right syntax: [code] <?php // file 1: $q1 = "SELECT * FROM accounts WHERE email = '\$_SESSION[email]'";    // this is right // file 2: eval("\$result = mysql_query(\"$q1\");");        // pay attention to the corrections. if (!$result) logError(); ?> [/code]
  5. at the moment i have a parse error: Parse error: syntax error, unexpected T_STRING in /usr/home/site/public_html/index.php(63) : eval()'d code on line 1 Error 0 :
  6. obsidian - wow that was fast , let me check , and i will post a reply ....thanks
  7. Hi guys, I am facing the following problem: original query is : [color=red]"SELECT * FROM accounts WHERE email=' " . $_SESSION['email'] . " ' ";[/color] however this query is located in a db.inc as: [color=red]$q1="SELECT * FROM accounts WHERE email=' \$_SESSION[\"email\"] ' ";[/color] the following execution doesnt really work : require_once "db.inc"; *** database connection **** [color=red]if(!($result = @ mysql_query($q1))) logError(); [/color] **** close db ***** I have tried many variations with no success. does anyone can help me with the right syntax for $q1 in the include file please? thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.