07-08-2014
Have you tried $_SESSION['userPrincipalName']
10 More Discussions You Might Find Interesting
1. Linux
Hi everyone,
I wonder if anyone ever came across the idea of unifying AD and Linux user accounts
We have a Linux machine with 'samba' 'winbind' service configured to let Windows AD users to logon locally using their AD accounts and passwords.
I can use 'su' to get to the local user privilege... (0 Replies)
Discussion started by: will_mike
0 Replies
2. BSD
i have problem user cannot add or edit file on their directory
i mean /home/user/public_html
i have httpd.conf like this :
................
# UserDir
Include etc/apache22/extra/httpd-userdir.conf
and httpd-userdir.conf
................
#
UserDir public_html
UserDir disabled... (2 Replies)
Discussion started by: moslemovic
2 Replies
3. Web Development
Hi everyone.
Im really new here, so please have patience with me if i act out of order in any way. I do have some unix experience, but i would not call it extensive.
The problem i am about to describe probably have a easy solution, but i have been unable to find it while speaking to Mr.Google... (4 Replies)
Discussion started by: antiw2k3
4 Replies
4. Shell Programming and Scripting
I have a internal wesbite set up and any visitor must enter username / passwd as defined in apache (I've set these up using htpasswd)
I use cgi scripts set up using ksh or javascript to populate pages / tables etc.
I want to be able to get the apache username that the used authorised... (3 Replies)
Discussion started by: frustrated1
3 Replies
5. Programming
Hi all,
Need a help in PHP scripting.
Am automating a process in web page. The process is
1. i have to open that web page using the user credentials (Username and password).
2. select a drop down and click submit button.
3. Then check for the status of the page.
Please help me how to... (1 Reply)
Discussion started by: vidhyaS
1 Replies
6. Ubuntu
Please Help Ubuntu is playing up cant in install using the Ubuntu software center. keeps saying that i'm not authenticated.
but I am the administrator and have sudo.
Thanks josh (4 Replies)
Discussion started by: jtsmith90
4 Replies
7. Web Development
Hi,
I'm new to developing modules for Apache. I understand the basics now and can develop something simple which allows a 'GET' request to happen, but what I want to do is actually 'POST' information to my site. I know the basic POST Request works and I can see that it is post by looking at... (2 Replies)
Discussion started by: fishman2001
2 Replies
8. Red Hat
Have no idea on what the below error message is:
Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-launcher.jar org.apache.tools.ant.launch.Launcher -buildfile build.xml dist.
Any help? (3 Replies)
Discussion started by: gull05
3 Replies
9. UNIX for Advanced & Expert Users
I am having trouble getting mail to work on a red hat server. At first I was getting this message.
Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused
Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies
10. UNIX for Beginners Questions & Answers
Greetings,
The title pretty much says it all. I've snooped everywhere and can't find anything on this. Since our organization went to numeric usernames, using the u|U option for ps returns no processes. Example passwd entry:
320074:DjZAJKXun8HBs:10129:6006:Joe Y:/cadhome/analysis/jy:/bin/bash... (4 Replies)
Discussion started by: crimso
4 Replies
LEARN ABOUT PHP
session_register
SESSION_REGISTER(3) 1 SESSION_REGISTER(3)
session_register - Register one or more global variables with the current session
SYNOPSIS
bool session_register (mixed $name, [mixed $...])
DESCRIPTION
session_register(3) accepts a variable number of arguments, any of which can be either a string holding the name of a variable or an array
consisting of variable names or other arrays. For each name, session_register(3) registers the global variable with that name in the cur-
rent session.
You can also create a session variable by simply setting the appropriate member of the $_SESSION or $HTTP_SESSION_VARS (PHP < 4.1.0)
array.
<?php
// Use of session_register() is deprecated
$barney = "A big purple dinosaur.";
session_register("barney");
// Use of $_SESSION is preferred, as of PHP 4.1.0
$_SESSION["zim"] = "An invader from another planet.";
// The old way was to use $HTTP_SESSION_VARS
$HTTP_SESSION_VARS["spongebob"] = "He's got square pants.";
?>
If session_start(3) was not called before this function is called, an implicit call to session_start(3) with no parameters will be made.
$_SESSION does not mimic this behavior and requires session_start(3) before use.
Warning
This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.
PARAMETERS
o $name
- A string holding the name of a variable or an array consisting of variable names or other arrays.
o $...
-
RETURN VALUES
Returns TRUE on success or FALSE on failure.
NOTES
Caution
If you want your script to work regardless of register_globals, you need to instead use the $_SESSION array as $_SESSION entries
are automatically registered. If your script uses session_register(3), it will not work in environments where the PHP directive reg-
ister_globals is disabled.
Note
register_globals: important note
As of PHP 4.2.0, the default value for the PHP directive register_globals is
off. The PHP community discourages developers from relying on this directive, and encourages the use of other means, such as the
superglobals.
Caution
This registers a global variable. If you want to register a session variable from within a function, you need to make sure to make
it global using the global keyword or the $GLOBALS[] array, or use the special session arrays as noted below.
Caution
If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(3), session_is_registered(3), and session_unregis-
ter(3).
Note
It is currently impossible to register resource variables in a session. For example, you cannot create a connection to a database
and store the connection id as a session variable and expect the connection to still be valid the next time the session is restored.
PHP functions that return a resource are identified by having a return type of resource in their function definition. A list of
functions that return resources are available in the resource types appendix.
If $_SESSION (or $HTTP_SESSION_VARS for PHP 4.0.6 or less) is used, assign values to $_SESSION. For example: $_SESSION['var'] =
'ABC';
SEE ALSO
session_is_registered(3), session_unregister(3), $_SESSION.
PHP Documentation Group SESSION_REGISTER(3)