Jump to content

about the session_start()


OLM3CA

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...
Link to comment
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 ????
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.