Question about The PHP Group PHP

1 Answer

Php cookie problems

I'm having PHP cookie problems, the cookies from my PHP site don't seem to be setting.

What are the common sources for this problem?

Posted by on

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    Hot-Shot:

    An expert who has answered 20 questions.

    Corporal:

    An expert that hasĀ over 10 points.

    Problem Solver:

    An expert who has answered 5 questions.

  • Expert
  • 53 Answers

Can u give me the error that is shown when you try to use cookies ? or it just doesn't work ?

Posted on Sep 10, 2008

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

How do I turn on Google account cookie? My Google account cookie is turned of and I don't know how to turn it on again.


To enable cookies in IE 7:
  1. Click Start > Control Panel. (Note: with Windows XP Classic View, click the Windows Start button > Settings > Control Panel).
  2. Double-click the Internet Options icon.
  3. Click the Privacy tab.
  4. Click the Advanced button.
  5. Select the option 'Override automatic cookie handling' under the Cookies section in the Advanced Privacy Settings window.
  6. Select the 'Accept' or 'Prompt' option under 'First-party Cookies'.
  7. Select the 'Accept' or 'Prompt' option under 'Third-party Cookies'. (Note: if you select the 'Prompt' option, you'll be prompted to click OK every time that a website attempts to send you a cookie.)
  8. In the Internet Options window, click OK to exit.
To enable cookies in IE 6:
  1. Click Start > Control Panel. (Note: with Windows XP Classic View, click the Windows Start button > Settings > Control Panel).
  2. Click the Advanced button.
  3. Select the option 'Override Automatic Cookie Handling'.
  4. Select the 'Accept' or 'Prompt' option under 'First-party Cookies'.
  5. Select the 'Accept' or 'Prompt' option under 'Third-party Cookies'. (Note: if you select the 'Prompt' option, you'll be prompted to click OK every time that a website attempts to send you a cookie.)
  6. In the Internet Options window, click OK to exit.

hope this will help you...Thank you...

Nov 11, 2009 | Compilers & Programming Tools

1 Answer

Clarification


are you saying you're switching from a session variable to a cookie?

delete the cookie altogether by setting the expiration to a time in the past (negative value). don't forget that you'll then have to reload a page in order to reread the cookie data.

so if you have a cookie with a logged_in value = true, and you set it to logged_in value = false, you're still logged_in = true, until you reload that page (or another page) and it rereads the cookie data and now determines that logged_in = false.

make sense? write the logged_in=false to the cookie, then force a url redirection to reload the page is my suggestion.

Jan 13, 2009 | The PHP Group PHP

3 Answers

PHP Tags


hi,
if you want to be experienced with php programming language i think you should learn HTML and CSS and have some basic understanding about JAVASCRIPT , then you can start learning php.
the best website to learn php language is w3schools .

Good luck,

please don't forget to rate this post

Sep 07, 2008 | The PHP Group PHP

2 Answers

PHP Source


hi,

i would like to tell that the php code doesn't appear when you open the source of the webpage , the server hides the php codes simply ,

thanks !

Sep 03, 2008 | The PHP Group PHP

1 Answer

PHP Troubleshoot


Is your "C:\PHP\Sessions" directory writeable by your IIS user account?

is Use_Session_cookies enabled?

Aug 05, 2008 | The PHP Group PHP

2 Answers

PHP doesn't work with Apache


php was not added to the httpd.conf

or apache wasn't restarted after they were added. You may just want to verify the following lines exsist:

AddType application/x-httpd-php .php .php4 .php3
AddType application/x-httpd-php-source .phps

Aug 05, 2008 | The PHP Group PHP

Not finding what you are looking for?
The PHP Group PHP Logo

Related Topics:

432 people viewed this question

Ask a Question

Usually answered in minutes!

Top The PHP Group Compilers & Programming Tools Experts

Robin Hill
Robin Hill

Level 3 Expert

1251 Answers

Mike

Level 3 Expert

4331 Answers

Mishan Kasiparsad

Level 2 Expert

142 Answers

Are you a The PHP Group Compiler and Programming Tool Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...