Questions tagged [sessions]
The sessions tag has no usage guidance.
66
questions
0
votes
1
answer
27
views
CP Session - keep alive or override timeout behavior?
I need a quick point in the right direction. This is for EE-5.3.X
I built out a SAML plugin to log in users using our IDP/SSO setup which works great, but i had a tiny oversight, the CP session ...
3
votes
3
answers
1k
views
Sessions getting killed by IE9 (user-agent mismatch?)
I have a customer who is losing their session. They are on Windows 7 and using Internet Explorer 9. I think I've widdled it down the user agent changing when compatibility mode or chrome frame kicks ...
0
votes
1
answer
22
views
First Visit Alert And Latest Updates For Non Members
EE 5.2.6
I'd like to be able to display messages to first time visitors and also show update messages to returning visitors but only show once. They don't have to be registered members.
the Show ...
0
votes
2
answers
181
views
$_SESSION Variable in EE
[EDIT - I have posted the answer to my question below]
EE 5.2.4
I'm having issues trying to use $_SESSION in EE.
What I would like to do is save an Amazon cart ID in the $_SESSION. Working in ...
1
vote
1
answer
687
views
Setting expiry length of login cookie
Is there a way to set the expiry time of the login cookie for users on the front end of an EE site?
I know there are hidden config variables for user_session_ttl but they don't seem to work if the ...
0
votes
1
answer
77
views
Automagically or force logout after 60 seconds
I have an EE3x site that is running User, Cartthrob, Transcribe, CE Cache (there is a lot going on) and I need a way to be able to automagically log-out users after 60 seconds of inactivity.
The ...
1
vote
0
answers
70
views
How to stop users being auto logged out after about 3 or 4 hours
Users of our site ( EE 2.9.2 ) are being randomly logged out after 3 or 4 hours.
I have checked cookie viewer in chrome and firefox, and “exp_sessionid” and “exp_expiration” are being set correctly ...
-2
votes
1
answer
48
views
How can I tell EE NOT to Cache a Session Variable
Firstly, I am new to ExpressionEngine.
I am using this "session variables" plugin:
https://devot-ee.com/add-ons/session-variables-plugin
The templates are being cached (with Mustash) and it is ...
2
votes
1
answer
131
views
Database error 1054 after upgrade to ee 2.11.6
A Database Error Occurred
Error Number: 1054
Unknown column 'fingerprint' in 'field list'
SELECT member_id, admin_sess, fingerprint, sess_start, login_state, last_activity FROM (exp_sessions) WHERE ...
6
votes
3
answers
725
views
Display a message on visitors first visit
I am wanting to display a message when a visitor lands on the site for the first time.
I don't necessarily want to use browser cookies, but would if thats the only solution.
Ideally, would I be ...
0
votes
1
answer
41
views
Strange URL parameter added on login
I'm seeing an issue where I login on the frontend and the URL becomes S=c3992270d168f3ec9ab1df5bc06afce3/test where test is the segment I'm passing from the return parameter.
I can't fathom where the ...
0
votes
1
answer
137
views
DataGrab fails if not run from EE Control Panel (logged in)
We've had an odd issue with a new site that's running DataGrab via CRON on EE2 that I'm really hoping someone can help with.
Everything was working fine for the first few weeks and data was being ...
1
vote
1
answer
162
views
Get member id in ExpressionEngines session hook
How do I get the member id of the current user in my extension when I'm in the session_start hook?
ee()->session->userdata('member_id');
Obviously doesn't work; this gives me a server error.
2
votes
2
answers
243
views
EE Session and cURL
Is it possible to retain the EE session when accessing a url in the same domain via cURL?
This is because the page accessed in the cURL call is dependent on EE's session variables.
0
votes
1
answer
154
views
How to log/view all frontend login sessions?
Does EE stores all frontend login actions somewhere?
Checking in Control Panel > Tools > Logs > Control Panel I can see it lists all users that have logged into the CP but not the ones logged in ...
0
votes
1
answer
108
views
Disabling the session tracker for non HTML templates
I have a problem with DevDemon FreeMember where it relies on the native EE session tracker array (https://ellislab.com/expressionengine/user-guide/development/usage/session.html#tracker-array) to ...
0
votes
1
answer
326
views
Setting a global session cookie path
I'm seeing PHPSESSID set at /members/ when I have $config['cookie_path'] = '' (also tried $config['cookie_path'] = '/').
Shouldn't this config ensure all session cookies are set at the root path? I'...
0
votes
1
answer
126
views
User not logged out when browser closed
This is on EE 2.10.1.
Website Sessions are set to Cookie Only.
$config['sess_expiration'] = 1440;
$config['sess_expire_on_close'] = TRUE;
phpinfo() reports session.gc_maxlifetime of 1440;
User ...
4
votes
3
answers
438
views
Session ID mode and internal links
My site uses a "guest" account and therefore needs to allow multiple simultaneous logins from different IPs. So I'm using "Session ID Only" for my Website Session Type.
Is there any good ...
0
votes
1
answer
230
views
how can i get ee global vars outside of ee?
I have tried something along the lines of
$email = ee()->....
and with a hope to include/require the page at the top of an external php page and then echo the value of $email.
This doesn't ...
1
vote
2
answers
384
views
Custom data in user sesstion
I'm new in Expression Engine, but have a good knowledge of codeigniter framework.
Idea is to store custom value in user session: geolocation data (City name) and put this value to input.
I wrote ...
1
vote
0
answers
60
views
Using session_variables and conditionals with Matrix!
The Situation:
I'm building a new feature for a wildlife-based charity. They want to spice up their donation form to include images of relevant animals based on how users have been browsing the site. ...
0
votes
2
answers
231
views
Transcribe - After AJAX request, when i switch language it directs me to the AJAX endpoint
So using - Transcribe 1.5 and EE 2.6
Basically when i have channel information outputting to json within ee,
when another page is requesting this via ajax, transcribe redirects to the translated json ...
1
vote
0
answers
100
views
after upgrading to EE 2.9.0 any valid user login attempt to CP or front end is not sucessful
I've seen posts like this but I've reached a dead end, can anyone help ?
Post upgrade from 2.8.1 to 2.9.0
logging in as front end user:
First thing I see is that "S=0" is prefixed before the template ...
5
votes
1
answer
557
views
Cartthrob not saving items to cart in Chrome (not Firefox)
I received a report from a user today that users in Chrome cannot add items to their cart. It seems to be a new problem only in the past few days, perhaps caused by a recent Chrome update.
I later ...
1
vote
1
answer
563
views
Set Session Timeout on Front End of site
I'm currently working on a site with a small members only section. My client would like to limit session length to 15 minutes. The time limit is for the front end of the site NOT the cp.
Is this ...
0
votes
1
answer
519
views
How to disallow characters in URL titles
We recently ran into an issue with some of our auto-generated URL title on channel entries. It seems that EE will happily allow characters like periods in URL titles. For example if I had a tile like ...
1
vote
1
answer
90
views
MSM Limitations
We have a totally 20 Websites.
Right Now, We are running 5 websites all in MSM under single database. our requirements is member can access all websites in any one of web site login.
All are portal ...
0
votes
0
answers
57
views
Is it safe to initiate a temporary session in plugin for use with the Channel Entries API?
I have a plugin that will accept posted form data from a member group and then create or update a channel entry which that member group is not given permission to post or update in (via the control ...
1
vote
1
answer
287
views
Check if user is logged-in inside sessions_start hook handler
I am aware that in sessions_start handler function, the session object is not yet set.
Since I can't use the session object, are there alternative ways to check if you are logged in in this function ...
0
votes
1
answer
53
views
show cartthrob packages product in front end
I want to show cartthrob packages in front-end after login when i login i am not able to see product which are used to add in packages shown in below image
Its work when we have logged in from back-...
0
votes
1
answer
330
views
Managing user session length in EE 2.8 +?
Recently upgraded to EE 2.8.1 and was worried about some things discussed in this thread.
Prior to EE 2.8 we were able to use the user_session_ttl config to set the user's session to whatever ...
1
vote
0
answers
48
views
CartThrob - Clear *Customer* Info
If a customer adds products to the basket, fills in their details and then processes a payment and it errors / fails / cancels and they press back (Or click the go back link) in their browser to go ...
0
votes
1
answer
57
views
create a link to admin area
I want to create a link from the font side of my site to the admin area.
The problem is the session id
<a href ="admin.php">go to admin</a>
This goes back to the login page even though ...
1
vote
1
answer
53
views
Upgrade to EE 2.7.3 login to CP via link not working any longer
On 2.5.5 I had a link like this on the client's product pages:
http://cl.ly/image/2c3G3m1X0a3D
Very simple, if they are logged into the CP on another tab, they click the edit link and it opens this ...
1
vote
2
answers
1k
views
"Undefined property: EE::$session" in ee.php after upgrade
After updating from v2.5.5 to v2.7.3, I get the following error:
A PHP Error was encountered
Severity: Notice
Message: Undefined property: EE::$session
Filename: controllers/ee.php
Line Number: ...
1
vote
3
answers
677
views
Freeform Pro and Session Variables
My client has a "resource" blog with articles and PDFs that are available for download.
They would like for their users to enter in an email address before being allowed to download the PDFs (I know)....
0
votes
2
answers
618
views
Session ID of user not logged in
I need to record some data in the database for a user in the session (a custom add-on) and I'd been using the value returned from PHP's session_id() method, which works well enough.
When the user ...
2
votes
1
answer
313
views
How to prevent EE and CartThrob setting cookies for anonymous users?
I'm trying to set up Varnish to cache certain static pages on my site for users who have not logged in or added anything to their cart.
Basically, Varnish will check whether the user has any cookies ...
0
votes
1
answer
3k
views
Object of class stdClass could not be converted to string
I am getting this error.I am not able to find out what is causing this error.
//A PHP Error was encountered
//
//Severity: 4096
//
//Message: Object of class stdClass could not be converted to string
...
4
votes
3
answers
392
views
Save revision on channel entry error
We've setup a site for a client to populate with their content and they are having a recurring issue when they go to 'save revision' or 'submit' the entry.
If they've spent a bit of time adding the ...
2
votes
1
answer
348
views
Cartthrob cart isn't properly tracking sessions or cookies/Can't add to cart on Ubuntu 12.04
Our setup
We were previously running a load balancer with a 4gb cloud server and 4gb DB server on the Rackspace Cloud. We were using Ubuntu 10.04 + PHP 5.3.2, EE 2.7.2 + Cartthrob 2.4. Everything was ...
2
votes
2
answers
975
views
Control Panel Login Timeout issues
I'm on EE 2.7 and clients are complaining of short logout times.
I’m forced to re-log into EE within 20-30 minutes of non-usage even though you’ve set the timeout to 8.3 hours.
My current ...
2
votes
1
answer
77
views
Logged in members - account sharing
Is there a way to see whether a currently logged in user account is being used on more than one machine concurrently? I'm trying to find out whether users are sharing their usernames/passwords, as I ...
2
votes
1
answer
83
views
User session ending when clicking on a link
I have a site with a login form on the front end for the user to log into the site. The login works ok, but when they click on any link to another page, their session ends and they get logged out. ...
3
votes
1
answer
183
views
Use unique user id in url segment
I have a simple page with a simple PayPal Buy button on the page.
When a person buys an item, and completes the purchase on PayPal, they will be returned to a thank-you page.
In order to NOT have ...
1
vote
2
answers
157
views
What hook for immediately after user is logged in?
I'm trying to find what hook there is for immediately after the user logged in?
I've been looking at sessions_start and sessions_end but I'm not sure how exactly they work and nothing seems to be ...
1
vote
0
answers
157
views
user_session_ttl hidden variable option not working
I have set this hidden variable in my config/config.php file
// Allows changing of the Users Session Length to any number in seconds. For instance, if users should be logged out after 10 minutes of ...
3
votes
1
answer
389
views
EE 2.6.1. Combine relationships and related categories for editorial workflow
On our Single entry pages we recommend other articles.
Four slots are available.
channel: articles.
channel fields: Content Elements field for the text and a native EE Relationship field called "...
4
votes
3
answers
2k
views
Keep Getting Logged Out of Control Panel
I keep getting logged out of the control panel while I'm working in it.
Under Admin > Security & Privacy > Security and Session Preferences, I have:
Control Panel Session Type: Cookies & ...