Jump to content

BizLab

Members
  • Posts

    141
  • Joined

  • Last visited

    Never

Everything posted by BizLab

  1. Paypal has an advanced payment system. Check that out. I think it is called Web Payments Pro
  2. OK, i did another test in a section of the site that is all SSL, and i am still unable to login correctly. I'm having no luck at all today!
  3. Actually, thats exactly what i am doing, lol SSL login and Non-SSL everything else ... how can i work with that?
  4. is this what you mean -> setcookie('user_id', $row['user_id'], time() + 60 * 60 * 24 * 30, '/', '.domain.com'); i haven't noticed an effect.. i'm gonna keep trying things, but i'm full out of ideas
  5. Ya they will go to the default save path. Has it recently changed? Could it be that the host has recently screwed up the permissions on the session folder? But that couldn't be the case if its keeping part of the session. Hmm. I'm out of ideas :/ Thats just the thing... Why would the session variables be active on the login page and work perfectly, but not on any other pages? AND if you come back to the login page (after logging in) the variables remain. I'm out of ideas too man, thats why i came here - i hate wasting other developers time with my probs but this one has me stuck
  6. Ok Ken, after running the array print the result was: Array ( ) [an empty session variable] Here are my own little variables displayed all nice and empty SESSION ID - 6jki3uqch1m6siur41ve06p6q6 || SESSION USER ID - (xxx blank xxx) || COOKIE USER ID - (xxx blank xxx) NOW HERE IS THE "KICKER" I also took out the re-direct and if i stay on the login page after logging in, the user is successfully "active" or logged in, but if i go to their homepage, the variables are empty as displayed above, BUT upon navigating back to the login page, ALL variables are active. The process, login->variables OK navigate (in any manner) to another page-> NO variables are present navigate back to the login page -> all variables are once again OK and active i believe this happens with or without the header redirect
  7. You should actually leave them stuck together. It is more secure that way. If the letters are spaced out the text "readers" can see the letters more easily.
  8. The session variables are assigned as is (i don't know what the path is, lol) i assign them as $_SESSION['user_id'] = $row['user_id']; // during a query But i'm not sure how to find out exactly where / what $_SESSION location they are going to. I assumed that they would go to the file set in the sessions php.ini..? thanks for the help
  9. yea, it is set to 1000 (.01% chance of cleaning files) - i have to go in and change it to the common 100(1%) i don't know why it defaulted to such a high number
  10. I just logged into Putty and checked out the session folder. There are about 50 files in there, so the sessions (at least the id) is being written to the system..... Wait, the session id on the client (browser) side hasn't changed since i began testing. Does anyone know why all these files are here? ALSO, i don't see the session id for the IE8 test i just performed...
  11. Maybe you can find a better doc type in the W3c list here: <a href="http://www.w3schools.com/media/media_mimeref.asp">http://www.w3schools.com/media/media_mimeref.asp</a>
  12. The PHP ini file shows the session_save_path as /var/lib/php/session but the error is only showing the line on the script that had an undefined session array index i'm not sure i follow??
  13. Your echo'ed table looks a little sketchy this while($row = MySQL_fetch_array($res)) { echo "<tr><td>{$sql['score']}</td>"; echo "<td>{$sql['Topic']}</td>"; echo "<td>{$sql['Subtopic']}</td>"; echo "<td>{$sql['Theswords']}</td>"; echo "<td>{$sql['id']}</td></tr>"; } echo "</table>"; should look more like this: while($row=mysqli_fetch_array($res)){ echo '<td>'.$row['score'].'</td>'; } you have to display the $row[''] data you assigned the mysql query results to hope that helps
  14. After the error reporting i recieved the following message: Notice: Undefined index: user_id in /var/www/vhosts/domain.com/httpdocs/folder/admin-sessvars.php on line 3 Notice: Undefined index: username in /var/www/vhosts/domain.com/httpdocs/folder/admin-sessvars.php on line 4 Notice: Undefined index: first_name in /var/www/vhosts/domain.com/httpdocs/folder/admin-sessvars.php on line 5 Notice: Undefined index: last_name in /var/www/vhosts/domain.com/httpdocs/folder/admin-sessvars.php on line 6 basically stating that the $_SESSION['var'] 's i had tried to set were indeed, NULL. This is expected at this point. I'm totally clueless now OH yea, Scripts are being run as FastCGI if that makes a difference
  15. Yup, i have it there. The session start is not the issue here. I should mention that the site worked 100% on the local machine, no problems or errors at all. Thats why i'm thinking it is server related....?? i don't know... Thanks!
  16. Hey, i'm launching a new site today, and i've been up since 2:30am so bear with me here guys. I've searched all over the internet and most of my findings point to the obvious session_start(); being forgotten... i WISH it were that easy SYSTEM: PHP 5.x Mysql (ver unknown) Plesk 8.x Media Temple VPS I have a login script that worked 100% on the local (win, apache) system. Upon successful login, the user is redirected to their homepage using the (header: ..... ) redirect. The session id remains intact after redirect, but any other session variables (assigned during login) are dropped -> and the session id remains active and unchanged (??). here is what i have: - session_start() on every page - The website uses a 301 redirect on all domains, so all point to the www.domain.com version of the site - The session directory is writable (as far as i can tell by the new records showing up after logging in) - The session vars are assigned as follows: $_SESSION['user_id'] = $row['user_id']; // from database query I am using session_write_close() prior to the header call as follows: session_write_close(); // to close the session write process to avoid problems here header('Location: /users/accounts/index.php'); Problem: The session_id is persistent while session variables are not PHP INI SETTINGS session.auto_start Off Off session.bug_compat_42 Off Off session.bug_compat_warn On On session.cache_expire 180 180 session.cache_limiter nocache nocache session.cookie_domain no value no value session.cookie_httponly Off Off session.cookie_lifetime 0 0 session.cookie_path / / session.cookie_secure Off Off session.entropy_file no value no value session.entropy_length 0 0 session.gc_divisor 1000 1000 session.gc_maxlifetime 1440 1440 session.gc_probability 1 1 session.hash_bits_per_character 5 5 session.hash_function 0 0 session.name PHPSESSID PHPSESSID session.referer_check no value no value session.save_handler files files session.save_path /var/lib/php/session /var/lib/php/session session.serialize_handler php php session.use_cookies On On session.use_only_cookies Off Off session.use_trans_sid 0 0 Any ideas to this would be helpful. 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.