i have 2 stores here : oc v1.4.9.3
1) tsubamecorp.com/singapore/
2) tsubamecorp.com/malaysia/
The problem is when you login to tsubamecorp.com/singapore/admin everything is work fine.
The url after login look something like this tsubamecorp.com/singapore/admin/index.php?route=common/home&token=827bcf36d9c167581620f377417e8774 but when you change the folder from singapore to malaysia in url tsubamecorp.com/malaysia/admin/index.php?route=common/home&token=827bcf36d9c167581620f377417e8774
you can login without put username or pass in login page for malaysia store!!!
This only happen when you try in same browser.
Any solutions??
Without changing the default behaviour of OpenCart (as explained by Zappo) you should set up a new host name for each shop instead. You'll have to register two separate DNS names and then access your shops as follows...
malaysia.tsubamecorp.com/admin/index.php
singapore.tsubamecorp.com/admin/index.php
You can still run with a single installation of OpenCart and a single database. This post may help you understand this configuration better...
http://forum.opencart.com/viewtopic.php?f=20&t=21411
I think this will only occur when you change the name and refresh. I guess when you log out and try to login again it will no work.
That's default OpenCart behaviour...
I also think Jerome is correct. The cookies are in the same domain, so OpenCart thinks you're still logged-in.
HOWEVER, I don't see your problem...
If someone is able to get that cookie set, he or she already logged in...
(e.g. This can not happen when someone did not log in)
Related
The Project is running on CodeIgniter (v 3.1.9).
from the Login page
When two different users (A and B) try to login from two different systems at same time, both users gets the same session values.
If A log's in first(1 or 2 seconds), then the user B gets the session of A's,
After a reload the correct session are restored.
This happens in the opposite way also.
So both the users gets the same dashboard the first time, which is pretty bad,
this only happenes when we try to login with 2 users at the same time.
If anybody has any pointers that would be great.
Thanks in advance.
SO After Long sleepless nights i figured out what was causing the issue, and it is a funny one.
Posting this answer so that if anybody comes looking for this.
So my codeigniter project was loaded in a sub folder of a domain, and that was the issue, somehow the codeigniter sessions gets mixed up when using the subfolder, when i moved it to another domain and everything worked perfectly.
just so you know i did add the required .htaccess for this folder.
#AyazShah #popeye thanks..
The wordpress admin on my site www.troov.com/blog/wp-admin no longer works properly (it refreshes back to the same login page even when using the correct credentials). This occurred after I switched the domain from troov.co to troov.com
Any help would be really appreciated. Thanks
Is the url it's redirecting to www.troov.co/blog/wp-admin ?
I ask as a common cause of this type of behaviour is that the siteurl and home values in the wp_options table haven't been changed.
What steps did you take to change the URLs in your database when changing domains?
Occasionally I run into a problem logging into the Magento admin panel. The username and password I enter is correct and the url in the browser window tells me that I have logged in correctly (ie: I see domain.com/index.php/admin/areallylongstring), however the login window is displayed again. No error message telling me that the log in details are incorrect is displayed, I am just routed back to the log in window. Has anyone come across this before and can anyone please suggest a solution?
Thanks!
Try start a private browser session and see if you can login, if so clear your cookies for the website and you should be able to login.
I occasionally get this problem, next time I get it I will dig into the code with my debugger to see what is actually going on.
This problem arises due to multiple reasons and the cheapest solution for this will be comment out the following lines in one of core files of magento.
FILE :- app/code/core/Mage/Core/Model/Session/Abstract/Varien.php.
// set session cookie params
session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath()//,
//dependes which versin of mage you are using, you may comment these as well
//$this->getCookie()->getDomain(),
//$this->getCookie()->isSecure(),
//$this->getCookie()->getHttponly()
);
Find out above code in that file and then comment out those three cookies as shown above.
But as I said it is the cheapest and easiest solution that you can go with. For more information, checkout this link
I am trying to make some changes in my Drupal 7 site's view. But it gives me this error
Changes cannot be made to a locked view.
Multiple users are not logged into the site.
Please any one can help me?
Thanks.
There is a break lock link in the view itself. click on the link.
What i observed is that when i change the name of my root folder of drupal website on localhost this error occurred.
This can be removed by clicking on break this lock link appearing on top of view itself.
delete the row for "Yourview" in the table "views_object_cache"
I faced this problem several times. Please make sure that you have logged in using only one admin account at a time even though you are using multiple browsers. Also, make sure that you have logged out of the admin account in other browsers before you close them.
If you currently logged in as the same user (admin) in more than one browser, Logging out of one fixed the problem.
After logging out if you still have the problem force logout all users (empty the session table)
TRUNCATE `sessions`;
i have problem with php cake session and subdomains. I have setted all successfully right. When i try to go from
subdomain1.domain.com
to
subdomain2.domain.com
all works nicely when i put these browser url... problem comes when i try to make this with <a href=""> tag, on redirected subdomain i will recieve new session id.
I cant explain to my self how can be this possible, pure php script works fine but in php cake is this bug! thanks for any suggestion...
ok, i debug whole php cake session component and lib, i figure out 2 sollutions
easier - set in core.php security level to low
Configure::write('Security.level', 'low');
advanced - make new config file for sessions, like Ivo said, its in tutorial http://book.cakephp.org/view/1310/Sessions ,most important thing is set
ini_restore('session.referer_check');
because by default php cake check referrer, and if it goes not form same domain it will cause generating new SESSIONID
I don't think it's related with cake.
By default, PHP will give you a session for the domain.
subdomain1.domain.com is a domain,
subdomain2.domain.com is another domain
domain.com is another different domain
www.domain.com is another different domain
All thoses examples are 4 distincts domains, with their own session.
If you want to share the session between many (sub)domain, you can try to set the session.cookie_domain variable, like this;
ini_set("session.cookie_domain","domain.com") ;
Try using this instead:
http://book.cakephp.org/view/1310/Sessions
Follow the directions to create custom configuration for cake's session saving.