Guest philoye Posted September 11, 2007 Share Posted September 11, 2007 Even for developing locally, I need to add have a password for mysql? Kind of strange... Quote Link to comment Share on other sites More sharing options...
Guest ianleopard666 Posted September 11, 2007 Share Posted September 11, 2007 i had the same problem, i typed in 1 space and it solved it , but now i carnt log into admin. i was hoping for a better start ;) Quote Link to comment Share on other sites More sharing options...
convict Posted September 11, 2007 Share Posted September 11, 2007 Well already found the same. The very quick help to skip any username/pass checking: setup/install.php Comment a line where you find following: $onclick = "onclick=\"YY_checkform('install','dbhost','#q','0',' Session issue on local install. I have posted this in CC4 Beta forums: classes/session/cc_admin_session.php function set_cc_admin_cookie($name, $value) { $expires = 0; ## remember session until browser is closed @setcookie($name, $value, $expires, $GLOBALS['rootRel']); //@setcookie($name, $value, $expires, $GLOBALS['rootRel'], $this->get_cookie_domain($GLOBALS['storeURL'])); } classes/session/cc_session.php if (!$this->user_is_search_engine() || $this->config['sef'] == false) { $expires = ($length>0) ? (time()+$length) : 0; //setcookie($name, $value, $expires, $GLOBALS['rootRel'], $this->get_cookie_domain($GLOBALS['storeURL'])); setcookie($name, $value, $expires, $GLOBALS['rootRel']); } Red marked is a new code, original code is commented out. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted September 11, 2007 Share Posted September 11, 2007 You must have a MySQL password! If you run a box, local or remote without a password this is not good news. Quote Link to comment Share on other sites More sharing options...
Guest philoye Posted September 11, 2007 Share Posted September 11, 2007 Session issue on local install. I have posted this in CC4 Beta forums: $onclick = "onclick=\"YY_checkform('install','dbhost','#q','0',' Wow, 1 hour in the wild and already hacking the core! I'm running into the same session issue: "No administration session was found." I actually went and created a username/password for my local dev mysql database, but then when I went back, I get this error. What is causing it? Quote Link to comment Share on other sites More sharing options...
Guest philoye Posted September 11, 2007 Share Posted September 11, 2007 You must have a MySQL password! If you run a box, local or remote without a password this is not good news. Fair enough, but my local mysql database has nothing of value. If the hackers get through my router and get through my firewall, my dev database is the LEAST of my worries. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted September 11, 2007 Share Posted September 11, 2007 Have you got cookies enabled? Also if more than one admin has the same access details they will log each other out as their browser/IP will differ. It's important each admin has their own unique admin login. Quote Link to comment Share on other sites More sharing options...
Guest ianleopard666 Posted September 11, 2007 Share Posted September 11, 2007 thanks convict , now i can get on a see what cc4 is like Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted September 11, 2007 Share Posted September 11, 2007 https://www.cubecart.com/site/customers/order.php $0.00 for the 14 day trial. Quote Link to comment Share on other sites More sharing options...
Guest philoye Posted September 11, 2007 Share Posted September 11, 2007 Have you got cookies enabled? Also if more than one admin has the same access details they will log each other out as their browser/IP will differ. It's important each admin has their own unique admin login. I have cookies enabled. I only have one admin in this (new cc4-only) database. It does share the same user name with my cc3 install, but that's in another database. Convict's changes to the two session.php files did the trick though. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted September 11, 2007 Share Posted September 11, 2007 ok. Please report any bugs and we'll get to them. ;) Quote Link to comment Share on other sites More sharing options...
convict Posted September 11, 2007 Share Posted September 11, 2007 Session issue on local install. I have posted this in CC4 Beta forums: $onclick = "onclick=\"YY_checkform('install','dbhost','#q','0',' Wow, 1 hour in the wild and already hacking the core! Hehe what a mixture of text like journalist i didnt say it as is written LOL The session issue on local install was posted before not the install script hacl :-) It is first time Develion added such db pass control in a official release as far as I know :) Quote Link to comment Share on other sites More sharing options...
convict Posted September 11, 2007 Share Posted September 11, 2007 Session issue on local install. I have posted this in CC4 Beta forums: $onclick = "onclick=\"YY_checkform('install','dbhost','#q','0',' Wow, 1 hour in the wild and already hacking the core! Hehe what a mixture of text like journalist i didnt say it as is written LOL The session issue on local install was posted before not the install script hacl :-) It is first time Develion added such db pass control in a official release as far as I know ok. Please report any bugs and we'll get to them. Al, v4 Beta forums discussed about I posted code without domain record in php cookies command. Martin did something around afterwards I think but domain always there. I think this is not used in version 3. Strange, edit post did the next one :w00t: Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted September 12, 2007 Share Posted September 12, 2007 Well already found the same. The very quick help to skip any username/pass checking: setup/install.php Comment a line where you find following: $onclick = "onclick=\"YY_checkform('install','dbhost','#q','0',' Session issue on local install. I have posted this in CC4 Beta forums: classes/session/cc_admin_session.php function set_cc_admin_cookie($name, $value) { $expires = 0; ## remember session until browser is closed @setcookie($name, $value, $expires, $GLOBALS['rootRel']); //@setcookie($name, $value, $expires, $GLOBALS['rootRel'], $this->get_cookie_domain($GLOBALS['storeURL'])); } classes/session/cc_session.php if (!$this->user_is_search_engine() || $this->config['sef'] == false) { $expires = ($length>0) ? (time()+$length) : 0; //setcookie($name, $value, $expires, $GLOBALS['rootRel'], $this->get_cookie_domain($GLOBALS['storeURL'])); setcookie($name, $value, $expires, $GLOBALS['rootRel']); } Red marked is a new code, original code is commented out. The problem with this fix is that if you have more than one install on the same domain sessions will be shared between then. The idea was to lock the session to the domain.path based on the storeURL in the global.inc.php file. Maybe locally installed stores have a different value in the global file to the one actually used. e.g. $glob['storeURL'] = "http://192.168.0.1/store"; If you visit the store at http://localhost/store sessions won't work. Right now I'm not sure what the solution is. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.