+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: $_SESSION Problem state not changing

  1. #11
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: $_SESSION Problem state not changing

    You've got a byte order mark in your page. Save the source code as ASCII or as UTF-8 without the BOM. How you do the latter depends on your editor; check its documentation for more information.

    See also "session_start() error - Not below any other ouput"
    Last edited by misson; 03-03-2010 at 08:48 PM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  2. #12
    johnnei is offline x10Hosting Member johnnei is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    20

    Re: $_SESSION Problem state not changing

    I will have a look soon on how Dreamweaver Saves the files.. Currently really busy with everything in rl :/

  3. #13
    johnnei is offline x10Hosting Member johnnei is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    20

    Re: $_SESSION Problem state not changing

    I saw that I had to uncheck a little box "Include Unicode Signature (BOM)" As un-checked I checked all files but only on index.php was that box there ... so re-uploaded all files (just to be sure ^^) but still same. I'll re-attach files.

    (Sorry for double post) Just for make you guy's check the topic again :$

  4. #14
    marshian's Avatar
    marshian is offline x10 Elder marshian is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Belgium
    Posts
    526

    Re: $_SESSION Problem state not changing

    There's still some sort of header in the file. It's a 3 byte code: EF BB BF, but I don't know what causes it. There must be some option in Dreamweaver... (I don't have it, nor do I have any experience with it, sorry.)
    What encoding are you saving the file as? Have you tried UTF-8 or ASCII?

    Edit: just to confirm, the header is the same as the one in the files you uploaded earlier.
    Edit again: the header does not appear in a number of other files, such as data/common.php or data/header.php, both in the old and new versions.
    Last edited by marshian; 03-10-2010 at 08:21 AM.
    Real programmers don't document their code - if it was hard to write, it should be hard to understand.

  5. #15
    johnnei is offline x10Hosting Member johnnei is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    20

    Re: $_SESSION Problem state not changing

    Ye. I noticed that .. index.php is the ONLY file I can pick that save type... I'll post screen about howto save.

    The C thing is standard maybe I have to put that to None? And Where can I see the BOM in the file (while using Hex-Editor). Is it just on top of file or somewhere else?
    Edit: nvm it are the 1st 3 bytes :$
    Putting the C to None still contains the BOM :/
    Last edited by johnnei; 03-10-2010 at 10:24 AM.

  6. #16
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: $_SESSION Problem state not changing

    Unicode normalization affects how certain equivalent characters are saved (e.g. "\uE9" (é) vs "e\u0301" (e with combining-acute)) and has nothing to do with the BOM. From the screenshot, the option that should affect the presence of the BOM is (surprise, surprise) "Include Unicode Signature (BOM)".
    Last edited by misson; 03-10-2010 at 01:21 PM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  7. #17
    johnnei is offline x10Hosting Member johnnei is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    20

    Re: $_SESSION Problem state not changing

    Quote Originally Posted by misson View Post
    From the screenshot, the option that should affect the presence of the BOM is (surprise, surprise) "Include Unicode Signature (BOM)".
    Oh my god! Your ****ting me?... I not that smart.. but he.. I'm not dumb also -.-
    I unchecked it made it overwrite it and its still there...

  8. #18
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: $_SESSION Problem state not changing

    Wow, sarcasm. That's original. My point is the only setting that affects the presence of the BOM is the one that mentions the BOM. Try changing it in the page properties.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  9. #19
    johnnei is offline x10Hosting Member johnnei is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    20

    Re: $_SESSION Problem state not changing

    The error is gone now :D
    Tnx Now I can start fixing the pages ^^

+ Reply to Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Domain Changing Problem
    By freefly in forum Free Hosting
    Replies: 2
    Last Post: 10-17-2008, 08:32 AM
  2. problem changing domain
    By ffakename in forum Free Hosting
    Replies: 1
    Last Post: 07-15-2008, 02:17 AM
  3. Problem changing my sub-domain
    By Movieserv in forum Free Hosting
    Replies: 4
    Last Post: 05-01-2008, 01:16 PM
  4. problem after changing the domain
    By xoicexo in forum Free Hosting
    Replies: 6
    Last Post: 04-01-2008, 03:52 AM
  5. Problem when changing my DNS!
    By marox in forum Free Hosting
    Replies: 4
    Last Post: 12-17-2007, 01:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers