Sponsored Content
Special Forums Cybersecurity Stream Content Security with user:pass Post 302917415 by DGPickett on Tuesday 16th of September 2014 01:28:56 PM
Old 09-16-2014
Your CGI should be secure/https at least while handling id and password, but can set a cookie with encrypted encoded (xml?) data giving access to the streaming content for just them and just N seconds. For instance, "<id>:<ip>:<unix_time>" run through encryption and base 64 encoding to be cookie-embeddable.
This User Gave Thanks to DGPickett For This Post:
 

We Also Found This Discussion For You

1. Shell Programming and Scripting

[Video stream] network stream recording with mplayer

Hi I used this command: mplayer http://host/axis-cgi/mjpg/video.cgi -user root -passwd root \ -cache 1024 -fps 25.0 -nosound -vc ffh264 \ -demuxer 3 -dumpstream -dumpfile output.avi It's ok but... Video Playing is very fast! Why? Is it a synch problem? What parameter I have to use for... (1 Reply)
Discussion started by: takeo.kikuta
1 Replies
SESSION_SET_COOKIE_PARAMS(3)						 1					      SESSION_SET_COOKIE_PARAMS(3)

session_set_cookie_params - Set the session cookie parameters

SYNOPSIS
void session_set_cookie_params (int $lifetime, [string $path], [string $domain], [bool $secure = false], [bool $httponly = false]) DESCRIPTION
Set cookie parameters defined in the php.ini file. The effect of this function only lasts for the duration of the script. Thus, you need to call session_set_cookie_params(3) for every request and before session_start(3) is called. This function updates the runtime ini values of the corresponding PHP ini configuration keys which can be retrieved with the ini_get(3). PARAMETERS
o $lifetime -Lifetime of the session cookie, defined in seconds. o $path -Path on the domain where the cookie will work. Use a single slash ('/') for all paths on the domain. o $domain - Cookie domain, for example 'www.php.net'. To make cookies visible on all subdomains then the domain must be prefixed with a dot like '.php.net'. o $secure - If TRUE cookie will only be sent over secure connections. o $httponly - If set to TRUE then PHP will attempt to send the httponly flag when setting the session cookie. RETURN VALUES
No value is returned. CHANGELOG
+--------+-------------------------------------+ |Version | | | | | | | Description | | | | +--------+-------------------------------------+ | 5.2.0 | | | | | | | The $httponly parameter was added. | | | | +--------+-------------------------------------+ SEE ALSO
session.cookie_lifetime, session.cookie_path, session.cookie_domain, session.cookie_secure, session.cookie_httponly, ses- sion_get_cookie_params(3). PHP Documentation Group SESSION_SET_COOKIE_PARAMS(3)
All times are GMT -4. The time now is 10:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy