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_ID(3)								 1							     SESSION_ID(3)

session_id - Get and/or set the current session id

SYNOPSIS
string session_id ([string $id]) DESCRIPTION
session_id(3) is used to get or set the session id for the current session. The constant SID can also be used to retrieve the current name and session id as a string suitable for adding to URLs. See also Session handling. PARAMETERS
o $id - If $id is specified, it will replace the current session id. session_id(3) needs to be called before session_start(3) for that purpose. Depending on the session handler, not all characters are allowed within the session id. For example, the file session handler only allows characters in the range a-z A-Z 0-9 , (comma) and - (minus)! Note When using session cookies, specifying an $id for session_id(3) will always send a new cookie when session_start(3) is called, regardless if the current session id is identical to the one being set. RETURN VALUES
session_id(3) returns the session id for the current session or the empty string ( "") if there is no current session (no current session id exists). SEE ALSO
session_regenerate_id(3), session_start(3), session_set_save_handler(3), session.save_handler. PHP Documentation Group SESSION_ID(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