session fun

From: Shell (newsgroups_at_ntlworld.com)
Date: 03/06/04


Date: Sat, 6 Mar 2004 12:49:53 -0000

Any ideas on why the following is happening?

I have a login script. When the verification part checks the database with
what was put in the form, it *should* set a session variable to yes or no,
if the details supplied were correct or not. When I use the log in script
for the first time tho, this variable is not set.. it's not until I use the
form again that it is.

What ever I submit the first time (correct or incorrect) it's not set.. On
the next submit it's set correctly (as per what I entered the first time -ie
if I put details in correctly the first time, I don't get logged in till I
enter something in the 2nd time (and what I enter the 2nd time can be
anything, incorrect, and I get logged in)).

I'm confussed. I'm even putting:
$_SESSION['ifloggedin'] = "no";
at the start of the bit which checks if the details are correct, and it's
not set on the first run (but the bit is def running as I've put a test echo
in there to proove it is).

I'm reaaallly confussed.

Any ideas what could cause this? :/



Relevant Pages

  • Re: how do i auto complete in access 2000
    ... >Sorry this is the first time i've used this, I think I've answered my own ... >question though, I needed to auto fill the data, in order that i didn't have ... Your conclusion is incorrect. ... the structure of your database? ...
    (microsoft.public.access.forms)
  • Re: Outlook profiles
    ... and the workstations came over from the old domain ... Much depends on what was done during the profile migration step there..... ... if the user doesn't have admin rights on the PC the first time they log ... they won't be able to run the sbssetup bit from the login script. ...
    (microsoft.public.windows.server.sbs)
  • Login - multi table insert for registrant; subsquent login insert page requests into joined Selectio
    ... Question regards insert and updates in sql server for a simple login script ... first time and tweaking the SP or adding a new to record later logins along ...
    (microsoft.public.inetserver.asp.db)
  • Re: Default printer for new users
    ... Set it as a part of a login script. ... I don't have the code handy, but you can search for it on Google. ... > employee is able to log in to any of the machines. ... The first time someone ...
    (microsoft.public.win2000.printing)
  • Re: A one-time logon script?
    ... > Is there a way to have a login script run only the first time a user logs ...
    (microsoft.public.win2000.general)

Loading