Jump to content

Archived

This topic is now archived and is closed to further replies.

OLM3CA

about the session_start()

Recommended Posts

Hi;
I am using a 'security code script' in my web page let me show little code

in index.php:
                    [code] session_start();
                    $_SESSION['security_code'] = $pic_code;[/code]

I am calling the picture (security code picture) picture.php in index.php <img src='picture.php'> ETC...

In picture.php we create the image code that will be displayed.
Starts with this code :

            [code]  $security_code= $_SESSION['security_code'];
              $pic=imagecreate(100,30);[/code]             
                            ...
                            ... ETC...


And my question is : while i am opening my page in internet explorer there is no problem.It works,The page shows no Errors.
But While opening in Mozilla Firefox I get an error like this :

[code]Warning: session_start() [function.session-start]: open(/tmp/sess_2ef8a8a7331af98de8f5a42e831ddf21, O_RDWR) failed: Permission denied (13) in /home/me2me/public_html/index.php on line 5

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/me2me/public_html/index.php:5) in /home/me2me/public_html/index.php on line 5[/code]


The is no problem accurs before in internet explorer and mozilla firefox but firefox starts to give this error.
AND I am sorry for my english ,is not good enough I hope you will understand...

Share this post


Link to post
Share on other sites
and this error too:

[code]Warning: Unknown(): open(/tmp/sess_2ef8a8a7331af98de8f5a42e831ddf21, O_RDWR) failed: Permission denied (13) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0[/code]

No ANSWER ? When I cleaned cache history temp etc... the problem solved ????

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.