Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

session_status(3) [php man page]

SESSION_STATUS(3)							 1							 SESSION_STATUS(3)

session_status - Returns the current session status

SYNOPSIS
int session_status (void ) DESCRIPTION
session_status(3) is used to return the current session status. RETURN VALUES
o PHP_SESSION_DISABLED if sessions are disabled. o PHP_SESSION_NONE if sessions are enabled, but none exists. o PHP_SESSION_ACTIVE if sessions are enabled, and one exists. SEE ALSO
session_start(3). PHP Documentation Group SESSION_STATUS(3)

Check Out this Related Man Page

SESSION_NAME(3) 							 1							   SESSION_NAME(3)

session_name - Get and/or set the current session name

SYNOPSIS
string session_name ([string $name]) DESCRIPTION
session_name(3) returns the name of the current session. If $name is given, session_name(3) will update the session name and return the old session name. The session name is reset to the default value stored in session.name at request startup time. Thus, you need to call session_name(3) for every request (and before session_start(3) or session_register(3) are called). PARAMETERS
o $name - The session name references the name of the session, which is used in cookies and URLs (e.g. PHPSESSID). It should contain only alphanumeric characters; it should be short and descriptive (i.e. for users with enabled cookie warnings). If $name is specified, the name of the current session is changed to its value. Warning The session name can't consist of digits only, at least one letter must be present. Otherwise a new session id is generated every time. RETURN VALUES
Returns the name of the current session. If $name is given and function updates the session name, name of the old session is returned. EXAMPLES
Example #1 session_name(3) example <?php /* set the session name to WebsiteID */ $previous_name = session_name("WebsiteID"); echo "The previous session name was $previous_name<br />"; ?> SEE ALSO
The session.name configuration directive . PHP Documentation Group SESSION_NAME(3)
Man Page

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

FTP doesn't work

Hi! I have 2 servers. The firts has vsftpd server with this configuration: # Example config file /etc/vsftpd.conf # # The default compiled in settings are fairly paranoid. This sample file # loosens things up a bit, to make the ftp daemon more usable. # Please see vsftpd.conf.5 for all... (2 Replies)
Discussion started by: Torquemada
2 Replies

2. Shell Programming and Scripting

Using Net::Telnet in Perl to connect to an adsl modem

Hello, First of all, congratulations on this forum! Very mice material! This is my fist thread and it has to do with connecting to an adsl modem and executing some commands. Heres what I do: $username = 'admin'; $passwd = 'admin'; $telnet = new Net::Telnet ( Timeout=>10,... (2 Replies)
Discussion started by: Ravendark
2 Replies

3. Shell Programming and Scripting

PROBLEM WITH ORACLE QUERY IN UNIX SCRIPT

hi Guys, i have a problem with oracle query in my unix script.. I'm getting the following error while executing.. ./logtab.sh: sqlplus -s "pmutv/pmutv1" << EOFSQL^Jset head off^Jinsert into... (2 Replies)
Discussion started by: apple2685
2 Replies

4. Shell Programming and Scripting

Inserting a row using shell

hi all, In first run,I am inserting a row into an oracle table through shell script, in the same shell script when I query this table the count comes as 0. When I run the same script again then the count comes correctly, Can anyone help how can I get the count of the row correctly in the... (3 Replies)
Discussion started by: Pratiksha Mehra
3 Replies