Hey Ben,
thank you a lot for your efforts.
by the session_start() stuff you mean those lines?
I added them to the beginning of /clients/forms/index.php - that is the page where I'm linking to (clients/forms/index.php?form_id=1).
Did you login as administrator the session before? Don't ask me why but that's the only case the script works on my installation - if it's not the case i still get the error message.
when printing the session information it shows correctely
after removing the line I still get the permission error.
When logging in the conventional way the client has the permission to view this form...
best regards, Hannes
thank you a lot for your efforts.
by the session_start() stuff you mean those lines?
PHP Code:
require("../../global/session_start.php");
session_start();
header("Cache-control: private");
header("Content-Type: text/html; charset=utf-8");
Did you login as administrator the session before? Don't ask me why but that's the only case the script works on my installation - if it's not the case i still get the error message.
when printing the session information it shows correctely
Code:
...[account] => Array ( [account_id] => 2 [account_type] => client [account_status] => active [ui_language] => en_us [timezone_offset] => 0 [sessions_timeout] => 30 [date_format] => M jS y, g:i A [login_page] => client_forms [theme] => default [menu_id] => 2 [first_name] => user [last_name] => name [email] => user@name.de [username] => username [password] => 696d29e0940a4957748fe3fc9efd22a3...
When logging in the conventional way the client has the permission to view this form...
best regards, Hannes