Jump to content

Cost

Members
  • Posts

    8
  • Joined

  • Last visited

Cost's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Yeah, thanks people. There were invisible charachters in the beginning of the file. In hex editor they look like this: EF BB BF. Krydos how did you remove them? To which enconding did you change it?
  2. <?php session_start(); echo " Session id: ".session_id(); ?> I have this code and it's still regenerating.
  3. <!DOCTYPE html> <?php if ( !is_writable(session_save_path()) ) { echo 'Session save path "'.session_save_path().'" is not writable!'; } session_start(); echo "Session id: ".session_id(); ?>http://hypo.heliohost.org/ Try it out. I detected it in Chrome's Incognito mode, idk if that was the cause. I tried in Normal modes of Chrome, Firefox and Internet Explorer, it regenerates in all of them too. For me, in your link it doesn't change too. Appearently there is no session_save_path... and it makes sense, if there is nowhere to save, it is not being saved and thereby regenerated every time. Or not, because empty string means it would save in the directory the .php is running from? Update: Ok empty string from session_save_path() means temporary directory. When I run sys_get_temp_dir() function, it returns: /tmp but idk if that's totally good, shouldn't it return hypo/home/tmp?
  4. session_id() is very important to me. It is supposed to be constant (I think) until browser is reopened. But here when I run this php script I always get new id: session_start(); echo session_id(); As I'm reading http://stackoverflow.com/questions/15911817/session-start-creates-new-session-every-refresh some say that this could be due to: 1) the session_save_path is not writable I run this: if ( !is_writable(session_save_path()) ) { echo 'Session save path "'.session_save_path().'" is not writable!'; } And it says: "Session save path "" is not writable!" Harris says: "If that is the case, you will need to have the server admins give what ever user your webserver runs as permission to write to the /tmp directory." Can I have this? 2) session.cookie_secure is On I do not know what this means but I will research it in the meantime. 3) You do not use https And this is true.. My .heliohost.org website is http, not https. If that's the case, will you ever upgrade to https? So because it's 2 out 3 I'm writing it here, I'm assuming it's your fault. But in case it isn't or in case you can't answer this quickly I'm looking this topic: http://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php even though I didn't get this error but I have many programming mistakes listed there so I will try to see what I can do myself.
  5. It says the connection is not safe, that tommy's safety certificate has expired due to incorrect configuration or a hack attempt. Is it my problem? If it is, how do I fix it? If it's server's problem, when can I expect it to be fixed?
  6. My answer is both. It was inbuilt by nature because cooperation is beneficial for survival, which means that those who had inbuilt morality survived more and those who had it less survived less and that's why we find it inbuilt. Also it is taught by our parents and society for the same reason, it is beneficial for thriving.
  7. I once asked a cleverbot this question... it answered 'To live' and I think that's as precise as it can get.
  8. The theory of God was long disputed before Christianity even was a thing. It was disputed by Epicurus: Is God willing to prevent evil, but not able? Then he is not omnipotent. Is he able, but not willing? Then he is malevolent. Is he both able and willing? Then whence cometh evil? Is he neither able nor willing? Then why call him God?
×
×
  • Create New...