SESSIONS and forms - ( 7 Views )

no kitty!
  1. I have a situation. I have a page that is protected by an accesscontrol page. which is just a user validation that puts a user name into a session variable. on one of the protected pages i have form that calls itself for processing.

    When I call that form, i get an error message that says my user_name is not valid. This is telling me the session is either not being carried over or something along that line.

    Any suggestions would be appreciated. THANKS MUCH !!!

    (hatice, Luxembourg)

  2. The reason your Username isn't being brought forward is the SESSION doesn't have it :D Does the page with your FORM in it have the SESSIONs in it as well; ie at the start of the page:

    PHP Code:

    if(!isset($_SESSION['User'])) {
    # no session found so create one
    $_SESSION['User'];
    }

    You should have something like that ? The above creates a new SESSION if none exist, otherwise the variable continues... Provided of course you actually read from the SESSION it's self to get the Username... As apposed to just addressing the Username as a normal variable ? Which I've seen so, so many times before...

    (aa, Monaco)

  3. You're calling session_start() at the beginning of both files?

    (gökhan , China)



Related Topics ... (or search in 1.720.883 topics !)

problems with using sessions with forms (6)
need help with php, sessions, forms (4)
sessions and forms (newbie) (2)
complexed forms using sessions question... (2)
asp sessions & forms (6)
problem with sessions/forms authentication (2)
sessions & html forms question (3)
php sessions vs text forms vs radio buttons (7)
php & apache sessions problems (not a standard 'how do sessions work?' post). (3)




copyright © 2007-2031 Pfodere.COM ( 6 Pfoyihuee Online )

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 
1.4177