Questions tagged [sessions]
The sessions tag has no usage guidance.
66
questions
10
votes
7
answers
2k
views
How do you prevent being logged out of the control panel?
One of my clients' irritations is being logged out of the control panel when he has left his session idle for a few hours. How can I prevent this?
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 ...
5
votes
1
answer
555
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 ...
4
votes
2
answers
3k
views
Log out upon tab/window close
I have an ExpressionEngine application that displays some financial information, and the client is requesting that the user is logged out upon closing a tab/window.
Is that possible?
I currently ...
4
votes
1
answer
1k
views
How to set and access session in EE?
SEE: http://ellislab.com/forums/viewthread/224965/
I need to display something to the user only once. How do I do this in the templates? My idea is to store a value in session and use it to decide ...
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 ...
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 & ...
4
votes
1
answer
296
views
Intelligent ways to force redirects before a session ends?
I was hoping to pick people's brains on a topic. I am developing a web app which sits on top of Expression Engine and this has worked really well so far.
I have one issue though and I have a quick ...
4
votes
1
answer
543
views
Securing the control panel with SSL
I'm in the process of securing my control panel with SSL using the following rewrite rules
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond $1 ^(member|system) [NC]
RewriteRule (.*) https://%{...
4
votes
3
answers
437
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 ...
3
votes
4
answers
1k
views
How to store temporary data for a user just for their session?
I need to allow a user to add articles to a wishlist that they can then e-mail or print. The data doesn't need to be saved or last longer than their session.
Is there a native EE way of doing this ...
3
votes
2
answers
852
views
Can't programmatically log member in
Can someone explain to me why I am not capable of forcing a new ExpressionEngine session to be generated for a specific user? I've been following this link: https://stackoverflow.com/questions/...
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 ...
3
votes
2
answers
3k
views
Trigger set_flashdata when method called via ajax
Is there any way to use $this->EE->session->set_flashdata(); when calling a method via ajax without having to do a page reload to get the message to appear as it normally would under a non-...
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 "...
3
votes
2
answers
117
views
Forum users report being logged out even after checking 'keep logged in'
We are currently running EE 2.5.2 and using the Discussion Forum Module (3.1.8). We have several users who report that they are logged out even when they have checked the 'keep logged in' option. We'...
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 ...
2
votes
2
answers
972
views
Clients in singapore on Singtel cannot login and sometimes cannot access site
This is my issue: http://ellislab.com/forums/viewthread/205006/P18
users in singapore are having an issue when posting content in various
and random channels and other places in the control panel....
2
votes
2
answers
974
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
318
views
Quick way to get user's signature in PHP
I'm just wondering if there is a quick way to get a user's signature using something like the session class? For example to grab the active user's email from the session class you can simply call $...
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 ...
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
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. ...
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 ...
2
votes
2
answers
242
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.
1
vote
2
answers
219
views
linking to admin from the main site - session parameter
I want to provide admin links from the main site for clients, however within the admin URL there is the session parameter.
Is there a way to output the admin url path that includes the dynamic ...
1
vote
1
answer
161
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.
1
vote
2
answers
381
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
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
1
answer
560
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 ...
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 ...
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 ...
1
vote
1
answer
52
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
3
answers
676
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)....
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
1
answer
186
views
Undefined property session in cp_js_end hook
Currently facing the following error in the cp_js_end hook.
Undefined property: Javascript::$session
it looks like the session class isn`t loading anymore in EE 2.6+ It whas working in older ...
1
vote
1
answer
835
views
Redirect user based on country
I was wondering if it's possible to work out if it is a user's first visit to the site and then redirect them to another site based on their country of origin (perhaps through GeoIP), but if they come ...
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 ...
1
vote
1
answer
685
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 ...
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. ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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
...
0
votes
2
answers
231
views
Sharing session with ASP.NET site
My organization has a site built on ASP.NET. It uses ASP.NET to manage the users (students, class coordinators, and finances). However there is a small 'content' component of the site: about the class,...
0
votes
2
answers
175
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 ...