Hi!

I have a PHP application with alot of files, and I really needed an easy way out of this.

Most of the files call the session_start(); function. However, my /tmp space is too small, and so it keeps returning me errors.

I found out a work-around, by adding ini_set('session.save_handler','files'); before session_start();.

I really don't want to modify everything manually, so I needed some way of defining the session.save_handler variable for an entire directory.

Is it possible?


Thanks.

Create an .htaccess file in the directory you want to affect (and all subdirectories in it.)

The contents of .htaccess will be:

php_value session.save_handler files

Done.

Thanks, will try :P

Knew it had something to do with htaccess :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.