While user logs-in in joomla2.5 site , it sets sessions for the user and in user.php it prints current user id,name and all. But after redirection everything lost and it shows as guest visiting page.
while user logs-in 4 sessions are created one for user and remaining 3 as guest.
We had this case before, and the login page had no www in the URL, but it was redirect to a page that had www. Could that be the reason?
If that isn't the reason, then worst case scenario you can just download Joomla (the version of the downloaded version of Joomla should match yours), and then extract it onto your website, and then remove the installation folder.
Related
I have purchased “Flipshop – Multipurpose Responsive Magento Theme” and i have installed the quickstart theme in local server but while login using admin front end it will redirecting to this page http://dev.ytcvn.com/ytc_templates/magento/sm-flipshop/.
i have changed the base url and secure url on ‘core_config_data’ table but redirecting to http://dev.ytcvn.com/ytc_templates/magento/sm-flipshop/.
Flush all caches using admin panel.
Go to root/var folder and ensure you remove cache/ and full_page_cache/
If that doesn't work please post your log tail -500 inside root/var/log/exception.log or root/var/reports/4353reportnumber.
In order for me to get a Prestashop user's cart, I first need to know who the user is in my external CodeIgniter application.
I have tried various attempts like the following: http://www.prestashop.com/forums/topic/204227-webservice-and-check-if-user-is-logged-in/ and http://www.prestashop.com/forums/topic/156218-solvedish-integrating-prestashop-into-a-pre-developed-website/ and even Prestashop: Session cookies & login and http://webilyst.com/prestashop-cookie-structure/
But I could not get it working. For some reason, the moment I include config.inc.php, it redirects to the shop - instead of allowing me to get the ID required.
My question: Any idea how to get this current user ID from PrestaShop in external epplication?
Edit 1
I am using CI 2.1.4 and PrestaShop 1.5.6.x.
Edit 2 Seems like the articles I have read is for an older version of PS. That code actually gets to a point where the Shop is being initialized, and once that is done, in Shop.php, the user is redirected to the shop. I do not want this to happen - I just want to find out who the current logged in user is.
You can get the current customer ID with the following code:
include($prestashopBasePath . '/config/config.inc.php');
$context = Context::getContext();
$customerId = $context->customer->id;
The reason why you are redirected is that you execute the script from a URL that is different from the shop URL defined in back-office -> Preferences -> Set shop URL. For example the shop URL is example.com/presta and your script is in example.com/other/script.php.
The solution is to move your script to the PrestaShop directory.
I'm using WAMPserver and Joomla as my CMS.
What I would like to know is, how to remove the login page on the localhost
because I already can access the login page from localhost/administrator
I've tried searching on google for the answer but didn't find any.
First of all Joomla backend and front end using different session,
like you can login two different users at the same time, one front end and other back end.
So when you remove front end login option you will lost the front end users entire facility.
Hope it make sense..
I bought after the installation of magento template, uploading demo database and a few time later, the site URL / work160.com / domain name is directed. I delete and re-install again I have to. Magento is in line with our demo pages bring our own? This problem can be solved with a regulation or in?
If your magento is redirected on another website (that is how i understand your question), you can do those steps:
check your basic secure and unsecure URL configuration, there should be your server adress
if you cant not login to admin during redirect, fo to the database to table named core_config_data and make sure there is right set up web/unsecure/base_url and web/secure/base_url both will have to value http://www.something.ok/ the last "/" is important
Reindex / fush cached data (delete magento/var folder if you cannot pass admin)
Refresh data in your browser (or use another one / anonymous mode)
and ... thats all
I have made a website with MVC and I have a little problem on routing: the link addresses from address bar appears with some strange paramaters like:
http://localhost:1413/Account/LogOn?ReturnUrl=%2f
instead of
http://localhost:1413/Account/LogOn
What should I do to have customized addresses.
I don't use any parameters.
The ?ReturnUrl=%2f portion of the Url is added by ASP.NET when a user is automatically redirected to the login page. Its added so that after the user logs in, they can then be redirected to their original page.
In this case, %2f represents the / meaning that the user tried to access the landing page and was subsequently redirected to the logon page. After they login successfully, they will then be redirected to the landing page.
You can still use the http://localhost:1413/Account/LogOn