PDA

View Full Version : session problems :( BIG TIME


arnold_charming
04-26-2005, 06:16 PM
Hi!

I'm building a site with multiple iframes.Because every iframe has to get some information from SESSION variables, I'm now and then getting access denied warnings. How to fix this? I know that one solution is to store variables in a database but I'm not so keen to do this. Should't this be implemented in PHP?Please help me ou!

Velox Letum
04-26-2005, 06:55 PM
Would you please post the entire error, as we may be able to assist you more effectively.

Fataqui
04-26-2005, 06:55 PM
What seem to be the problem, sessions can be accessed with in any frame even a iframe if you do it right! Can you give some sort of an example of the trouble you are having.

Fataqui

arnold_charming
04-26-2005, 07:16 PM
Hi!

Here's the error:

Warning: session_start() [function.session-start]: open(c:\php\sessions\sess_h6r9hhs9ttae7devjejhud7vv3, O_RDWR) failed: Permission denied (13) in C:\Documents and Settings\Iztok\My Documents\My Website\bla\globals_var.php on line 6

I have to point out that this usually works. I suspect that this is happening because several php templates are trying to access 'sess_h6r9hhs9ttae7devjejhud7vv3'. Am I right?

Velox Letum
04-26-2005, 07:24 PM
It would be a likely suspect, though would you mind posting code?

arnold_charming
04-26-2005, 07:25 PM
Hi!

Below is the code of globals_var.php:

<?
/* Buffer */
ob_start();

/* SESSION */
session_start();
?>

marek_mar
04-26-2005, 08:14 PM
...and what are we supposed to do with that? Show the rest of the code and enclose it in [php] [ /php] tags.

arnold_charming
04-26-2005, 08:37 PM
Hi!

That's all the code that it is in the globals_var.php file. This file (template) is then included in several other templates.