Page 1 of 1

PHP session password check

Posted: May 23rd, 2011, 5:55 am
by heyyou
Hello

I'm building a custom php control panel to manage my server and webui's. I want to include the Sabnzbd webui in the control panel. Authenticating works with php session and i'd like to have sabnzbd's authentication working with it as well. My idea was to read the php session file manually and unserialize it with this: http://www.hurring.com/scott/code/python/serialize/

Then it would only be a mather of checking if the values are the correct username and password. If the values are not present or wrong, i'd like the page to be redirected to a login.php page.

But now the problem: i barely know python :-X anyone who has suggestions or willing to help out?
Thanks in advance!

PS: i didn't know where to post it and this seemed a suitable place

Re: PHP session password check

Posted: May 23rd, 2011, 6:41 am
by shypike
Is this a feature request?
If it is, I have no idea what you're asking for.

Re: PHP session password check

Posted: May 23rd, 2011, 7:37 am
by heyyou
No, it is a scripting support question which has to do with sabnzbd. In short: i want to replace the classic password check that sabnzbd has with a check against php session variables.