If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Extending Session Times Through Shell Scripting

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-09-09, 14:02
tsanders tsanders is offline
Registered User
 
Join Date: Sep 2009
Posts: 1
Extending Session Times Through Shell Scripting

First off, sorry if this isn't the right place for this question but I'm kind of... well... very new to this "shell" thing. I'm familiar with html, php, the usual stuff, but I'm not sure what to do with the following issue...

I have a website that's been migrated to a new private virtual server. This site has both an admin and a members' area that you must login to view. When the user logs in a session is created that lasts for approx. 2 hours... I used a php.ini file to ensure a lengthy session. Now on the new server though with or without the php.ini file sessions don't seem to be being stored... at all... can't login with proper/improper/or any other type of creditential.

Anyway, long story short... I contacted our personal tech support at our hosting company and he told me that the only way to adjust the sessions was through the shell scripting and that I'd have to do that myself... So I'm kind of at a loss here as I have no idea... is there a simple way to extend session times from nothing to at least a couple of hours?

And again sorry if I'm out to lunch on this, as I don't really know any of this myself I'm just going on what my "tech support" has informed me of.

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 09-09-09, 16:36
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,233
I don't think it has anything to do with "shell scripting", as the shell is not involved in communication between your web server and the users' browsers. You will probably get more meaningful answers on a PHP forum. Also, I would try to find some other "personal tech support" at your provider, as the one you quoted didn't seem to have much understanding of the issue.
Reply With Quote
  #3 (permalink)  
Old 09-09-09, 16:42
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,233
You may want to take a look here: PHP: Runtime Configuration - Manual

I would make sure that session.save_path points to a writeable directory, for example.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On