Closed rtorcato closed 10 years ago
actually set mongodb to default and it still doesn't work.
Are you using the correct connection?
my connection to mongodb works. I have it pulling up some records from my mongodb.
when i do: Session::put('key', 'test'); It doesn't write anything to a session collection.
But did you select the correct connection in the session config?
yes 'driver' => 'mongodb', and 'connection' => 'mongodb' is set in session.php
I'm not having any issues with the mongodb session here. It creates a 'sessions' collection containing the session payloads.
hmm something wrong with what I'm doing. I placed a simple echo statement on createMongoDBDriver function and nothing.
Did you register the service provider?
yes i have both of these registered. The first one i know for sure is working because i have no problems getting records from mongo
'Jenssegers\Mongodb\MongodbServiceProvider',
'Jenssegers\Mongodb\Session\SessionServiceProvider',
looks like something wrong with my laravel installation. Regular database sessions are being stored. You can close this issue.
Is there a way to use mongo sessions when the default is mysql?