I have located a fantastic response on StackOverflow that should get you started with taking away index.php from the URLs.
Magento can store sessions by using various session vendors and this can be configured within https://victormoub255087.blogunok.com/profile