Go Back   Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum > Support > php issues.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-11-2007, 01:22 PM
Senior Member
 
Join Date: Feb 2007
Posts: 110
Default session_save_path folder needs to be 777?

I've just started using Zend_Session (part of the Zend Framework) and one of the things it requires is for session.save_path to have a value. I created a session folder (outside of my web root :p) and set session_save_path to point to it, but the only way I could get it to work was by setting the folder's permissions to 777. It makes me nervous setting a folder with sensitive data to 777 so I would appreciate it if someone could tell me that this is what it is supposed to be?

Cheers!
Reply With Quote
  #2 (permalink)  
Old 04-11-2007, 02:04 PM
kev woodman's Avatar
Premium Member
 
Join Date: Jul 2006
Location: Newport, Wales, UK.
Posts: 1,494
Default

I don't use the Zend framework but try setting permissions to 660 and see if that works. If not try 770 but if it does you could try removing more permissions until something stops working
__________________
homo sum: humani nil a me alienum puto ... ( just Google it )
Reply With Quote
  #3 (permalink)  
Old 04-11-2007, 02:51 PM
Senior Member
 
Join Date: Feb 2007
Posts: 110
Default

Thanks for the reply,

I'm setting the folder with "session_save_path()", I tried different permissions, 770 & 775, but it only works with 777.

I have however found out about storing sessions in MySQL which looks like it could be a very secure option.
Reply With Quote
  #4 (permalink)  
Old 04-11-2007, 03:24 PM
kev woodman's Avatar
Premium Member
 
Join Date: Jul 2006
Location: Newport, Wales, UK.
Posts: 1,494
Default

If it's outside of your Web root you should be pretty secure anyway - after all unless you are using HTTPS all of your data is being sent across the network unencrypted anyway.
__________________
homo sum: humani nil a me alienum puto ... ( just Google it )
Reply With Quote
  #5 (permalink)  
Old 04-11-2007, 03:44 PM
Senior Member
 
Join Date: Feb 2007
Posts: 110
Default

Quote:
after all unless you are using HTTPS all of your data is being sent across the network unencrypted anyway.
True, I get a bit paranoid about security, especially with something I don't fully understand.

This article got me up and running with MySQL sessions, now that I have it working I might as well use it.
Reply With Quote
  #6 (permalink)  
Old 04-11-2007, 09:38 PM
Administrator
 
Join Date: Mar 2006
Posts: 1,688
Default

It wont make any problem even if you set 777 permission for any of the directories inside public_html ( linux ) or htdocs ( windows ). We have some good security settings to prevent anyone from injecting contents inside 777 permission directory. If you are stuck with some technical stuff then its better to get help from one of our system admins from our helpdesk ( http://support.webhosting.uk.com )
__________________
Web Hosting UK - ASP MSSQL Hosting - cPanel Linux Hosting
AIM : webredback || msn : andrew @ webhosting.uk.com
Toll Free : 0808 262 0855
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:54 PM.
Copyright 2002-2007 WebHosting.uk.com. All rights reserved.
Web Hosting UK Forum