Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP PHP User Authentication Adding Authentication to Your Application Flash Messages

How do you make this work on a live platform? My session isn't saved on my shared hosting server.

This process worked fine in my local environment, but I'm getting errors when I try to run it on my shared hosting site. There error I'm getting is this one:

Warning: SessionHandler::read(): open(/var/php_sessions/sess_5b4077feb9bf47a70ccde805100ae624, O_RDWR) failed: No such file or directory

Best I can tell, the session isn't being written due to a permission problem somewhere, but I can't figure out where I need to change a setting.

Any help would be greatly appreciated.

1 Answer

Sergey Podgornyy
Sergey Podgornyy
20,660 Points

Some hosting providers allows to change some configurations in php.ini, or you can contact tech support to solve your problem. If it's not possible, you can use JWT instead, or change your hosting provider

Thank you. I did end up changing my hosting provider and it worked instantly. Much appreciated.