Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [session]

A session refers to the communication between a single client and a server. A session is specific to the user and for each user a new session is created to track all the requests from that user.

0
votes
2answers
30 views

How to correct a sesssion_write_close() warning?

I have the following error shown on error log. But I am a Joomla novice. Could I get a simple step by step guide on how to solve my WSOD problem here? [10-Nov-2018 07:48:20 UTC] PHP Warning: ...
-1
votes
2answers
95 views

Joomla session get function return old values and don't update with new value

Apologize for my English. I have a boring and very vital problem with Joomla! Session. When a table of data appears on the first page, a series of information is stored in the session as follows: $...
1
vote
1answer
47 views

AJAX POST request with form Token always responds with “Invalid Token”

I'm sending data from a form with AJAX. The data is a username and password of the user, and therefore I want to make it as secure as possible. I'm trying to use a token as an extra security layer, ...
0
votes
0answers
33 views

redirect to login page after session life time is over in joomla 3.8.10

Is this possible to redirect to administrator login page after session lifetime is over in joomla 3.8.10. Right now session get unset but it's not get logout. we need to refresh page then it's ...
0
votes
0answers
35 views

“Headers Have Already Been Sent”

I was having difficulty with a Joomla! site and decided to move it to another server for testing. The Akeeba backup I had would not fully extract for some reason (a large backup file included in the ...
0
votes
0answers
67 views

Session cookies not set and google analytics not working after upating to joomla 3.8.8

Session cookies are not being set after updating my website's Joomla version to 3.8.8. It was working fine prior to it. As a result of which google analytics is also not working. I checked analytics ...
6
votes
2answers
529 views

Old sessions not being automatically deleted from the database

I'm running a 3.8.5 site with a fair bit of traffic. Because of some recent problems I noticed that the __session table is not being automatically tidied up. The session lifetime is set to 1 hour (60 ...
0
votes
1answer
41 views

clear hikashop cart session in varibile time

how clear hikashop cart session in every 5 miunuets? when user add item in cart, if under 5 minutes , do not payment process , empty cart for user . some code of hikashop cart.php function ...
0
votes
0answers
105 views

How to pass variables from k2 to chronoforms?

I need to transmit data from extrafields of k2 items to values in form fields by Chronoforms 6 which is on the same K2 item page. How can I do this?
0
votes
0answers
100 views

Share Joomla session between ionic3 app and joomla site

Can I share Joomla session between ionic3 app and Joomla site? Is this possible? How to save logged-in user's session when I am logged in from an app, without creating a new session record, after ...
1
vote
0answers
118 views

Setting: Session lifetime and Cache time

Joomla 3.7.5 The default values of both are 15 minutes, which means I have to re-login very often. So I always change it to 60. But I have been aware since long time ago, that when they are set to 60,...
-1
votes
1answer
569 views

Change Value Of Multidimensional Array In Session

This will change a variable in the session $session = JFactory::getSession(); $session->set('name', "value"); But could you in the same way (directly) change any specific value of a session array?...
2
votes
1answer
570 views

How to manage sessions between Joomla and external PHP applications?

I am trying to achieve single sign on behaviors between PHP/PERL applications and Joomla. The main entry point would be Joomla, which would set up the sessions and other cookie variables that would be ...
2
votes
1answer
2k views

Get Session Value in Joomla

I am using some simple JavaScript and php to get the session info to my console like so:- var id='<?php $s=&JFactory::getSession();echo $s->getName();?>'; console.log(id); The problem ...
2
votes
1answer
73 views

Joomla session not passed to custom component

So I'm having trouble with a Joomla (version 3.6.4) project that I need to solve for my work. The problem is that whenever I log in on my homepage, I get logged out when going to my custom component ...
0
votes
1answer
243 views

How to avoid getUserStateFromRequest for not store in session

I read and understand that getUserStateFromRequest stores information in session. The session storage is causing an issue on site Is there an alternate way by which i can avoid in session storage on ...
2
votes
1answer
206 views

How can I add my variables in user object

I am trying to create vendor panel. In that I need to identify the user is vendor or normal user. For that I need to add session variable or variable in user object. But how can I achieve that. ...
3
votes
3answers
2k views

How to disable storing session for guest or public to Joomla table

I want to disable session for all guests or public visitors which are being stored to joomla's session table in order to reduce hits and serverload. In fact, my website doesn't have front-end log-in ...
6
votes
1answer
98 views

How does the akeeba backup actually work for cron jobs

This is just a general question into how the Akeeba backup system works when called from a cron job. I have traced the coded as much as I can and understand that its called from the front end and ...
5
votes
3answers
486 views

How to make a notice that session is expiring in Joomla?

How do I make a javascript notice in my Joomla page when session is about to expire? Also still not sure why Joomla 3.4.5 session is not expiring or redirecting page to my home page after setting my ...
4
votes
1answer
37 views

Is getExpire in minutes a documentation error?

I believe I've found a mistake in the Joomla documentation, according to the docs getExpire should get session expiration time in minutes. I've checked my settings and the session lifetime is set ...
0
votes
0answers
33 views

When I redirect a user to another component in the page, he is logged out. Why is this happening? Help.

I would like to know why a user gets logged out after being redirected to another url, still in the same browser, and no new page. His session get cleared too. Am usinng joomla 1.5 ie <a href="...
9
votes
1answer
1k views

Joomla Session->isActive() & session timeout redirect not working

I am trying to redirect my website to the homepage when the session expires and the user is automatically logged out (right now it gets redirected to the joomla core registration page, which I don't ...
1
vote
2answers
118 views

Maintain session in joomla

I'm using below code for getting session in my Joomla website from other application <?php session_start(); if (isset($_POST["acode"]) && strlen(trim($_POST["acode"]))!=0) { $_SESSION[...
1
vote
2answers
507 views

Setting Specific Session Variable (user specific image folder)

I'm trying to integrate http://responsivefilemanager.com/ into joomla to replace the normal image manager so I can have per user image folder option. I managed to integrate it reasonably well into ...
6
votes
1answer
268 views

Not able to store a Object in Joomla session

I am trying to store an object in Joomla session and it gets reset when I null the temp variable. $whoami = new stdClass(); $whoami->type = 's'; $whoami->id = '1'; //Loading the value to ...
2
votes
1answer
411 views

How to read resp. parse Joomla session data read from database?

Is there a way to read respectively parse Joomla session data in PHP as session_decode() and unserialize() are not working on that values? In my component I need to read data from all active non-...
0
votes
1answer
1k views

Get session information of logged-in user

I recently started playing with Joomla. So I found out that Joomla has a built-in user creation and log-in system even for the users of the front site. So I was wondering, what is the way to retrieve ...
1
vote
1answer
195 views

Update quantity of the same item in the session instead of adding new one

I use the following code in my controller for adding product items to the session: $app = JFactory::getApplication(); $input = $app->input; $itemid = $input->get('itemid'); $quan = $input->...
2
votes
2answers
498 views

Join data from session with sql-query and display in module

I'm developing a module for displaying products that are added to Joomla session. The products are being added to the session by using the code: $app = JFactory::getApplication(); $input = $app->...
2
votes
1answer
455 views

How to pass an array to Joomla session correctly

I use the following code to pass an array to session: $app = JFactory::getApplication(); $input = $app->input; $itemid = $input->get('id'); $quan = $input->get('quan'); $session = JFactory::...
2
votes
2answers
569 views

Remember Me feature not working Joomla 2.5

I have a Joomla 2.5 website. The website requires all users to log in as the content is restricted to registered users. When my users log in there is a Remember Me function as part of the core Joomla ...
2
votes
2answers
436 views

How to retrieve an array from Joomla session table

I added the data to Joomla session as: $cart['items'][] = array('id' => 1, 'name' => 'Laptop'); $cart['items'][] = array('id' => 2, 'name' => 'Tablet'); $session->set('cart', $cart); ...
0
votes
1answer
189 views

Joomla 3 Losing Sessions between HTTP and HTTPS

Our website is using Force SSL on all pages. There is a massive issue that whenever a HTTP url is requested, the session is lost and the user is logged out, even though they are still redirected to ...
0
votes
1answer
207 views

Where does Joomla stores the session handler setting?

I have recently changed the Session Handler setting in Joomla 1.5! from 'database' to 'none'. I am searching as to where does Joomla! stores this information in the DB. To be more precise, where does ...
5
votes
1answer
498 views

Modify standard redirect url after session time out

How can I modify the standard url after session time out? 'http://www.domain.com/component/users/?view=login' The loginform module for my frontend is deactivated. Instead there is a custom login form ...
3
votes
1answer
197 views

Updating User session to reflect latest access level changes

When there is any change in user object like usergroup etc during a session then these changes does not get reflected immediately in the current session. User needs to logout and then again login to ...
1
vote
1answer
3k views

How to set login session in Joomla 3 as persistent cookie?

I´m specifically looking for a way to make the login session persistent so that a user is kept logged in even after closing his/her browser. Per default the login session is always terminated ...
0
votes
3answers
1k views

Getting session value without refreshing in Joomla

I made a Joomla module which contains a form element select box. On selecting, it submits the form and the value of selected item is stored in a session variable. <?php defined('_JEXEC') or die; $...
3
votes
1answer
563 views

Session variable in joomla 2.5 external file

I am trying to set a value in external file but the session values are not set correctly. The session is set some times and other times it is not set. I am setting a session using ajax call following ...
3
votes
2answers
1k views

Joomla CSRF form validation

I have noticed this happen occasionally with a component I am working on. I use JHtml::_('form.token') in the form and JSession::checkToken() or die('Invalid Token') to check it once i receive the ...
5
votes
1answer
395 views

Joomla custom session data is overwritten

I'm writing a custom component cart, and using a form post to save cart data in the Joomla session. It works initially, but then if the user goes back to add another item, the original item is ...
6
votes
3answers
7k views

Cannot log in to Joomla (front and back) after site move

I moved a Joomla 1.5 site to another hosting provider under different domain. Everything works fine, all pages load fine, but I can't log into administrator panel, not the front end. The username/...
4
votes
1answer
369 views

How to use logout() method without duplicate session record in db

While importing from an external app, I'm creating new users, and all their categories, subcategories, and articles. To get proper ownership of all the content, I'm logging the new user in, ...
2
votes
1answer
1k views

How to load Joomla session from external AJAX call

I have a Joomla 3 site, and under that site but not within the Joomla framework, I'm doing all of my coding. Most of the functionality I'm providing with jQuery AJAX calls. In the PHP scripts used, I'...
1
vote
1answer
2k views

How destroy specific user session when we are using default php session handler?

If a user A and a user B are both super user and the user A removes the super user permission of the user B, and the user B is logged in, while the user B session remain active, he can do anything on ...
5
votes
2answers
1k views

Is there anything wrong with setting Joomla session variables consecutively in an external php script?

I'm setting multiple session variables in a PHP script that is external to Joomla. The variables are set consecutively using the following code. //Access Joomla define( '_JEXEC', 1 ); define('...
1
vote
1answer
2k views

Joomla Invalid token / Session timeout issue

I have a site that is implemented in Joomla 3.1.5 on which the following are installed http://www.joomlart.com/joomla/templates/ja-muzic --> This is the theme http://www.jomsocial.com/ --> Used ...
9
votes
2answers
372 views

What differences (if any) are there between JFactory::getSession() and $mainframe->getSession()?

As the title states, I'm interested in knowing what differences there are (if any) between JFactory::getSession() and $mainframe->getSession() This question was inspired by Retrieve joomla session ...
3
votes
1answer
916 views

Deadlock on the sessions table

Infrequently, instead of my site loading I get a white screen of death with this error message: Deadlock found when trying to get lock; try restarting transaction SQL=INSERT INTO jom_session (...