-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I usually use the session object to store an object reference with Java,
but you can do something similar with php.

When you process the login form:
$_SESSION['user_name'] = $user_name;

Then, whenever you need it in another php script, you can do something
like this:
session_start();
$user_name = $_SESSION['user_name'];

hth

- --
Pete Hall
pete@xxxxxxxxxxxxxx

On 2010-10-20 11:53, Kevin Bucknum wrote:
Actually - this program is a bad example as I do actually have the
option to pass in a user and override the one from the program status
data structure. But most of our programs don't do that. We don't do any
kind of connection pooling and require valid signons for all the
database and store procedure calls, so current user sounds like the way
to go. We had the program status data structure mapped to an external
file, but it had 334-429 mapped as unused. I've updated the file and
have recompiles going on all the objects that used it. Hopefully in a
little while I can change it to use the current user and only have to
modify future utility programs to use that as well.

Thanks.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAky/jy8ACgkQXczQcKdXKg4xWQCgw2L2g4pyQt5CWPsTAlm+CyZ1
FyUAoI/vqwCO7T4oFNltIHRpyGCCQvMj
=dRbb
-----END PGP SIGNATURE-----

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.