How can I maintain session after login using Selenium in Python?
<p>I'm succeeded logging in sites using Selenium in Python 3.4
The login process is like below:</p>

<pre><code>browser = webdriver.PhantomJS()
browser.get('url')

emailElem = self.browser.find_element_by_name('user_id')
emailElem.send_keys(user_id)

passwordElem = self.browser.find_element_by_name('password') 
passwordElem.send_keys(user_pwd)

passwordElem.submit()
</code></pre>

<p>After I login, I'm trying to access certain page where the log-in session is required,</p>

<pre><code>browser.get('login-session-required-page-url')
</code></pre>

<p>It lost its session and not allowed to access.</p>

<p>I think that this is related with session and cookies, but I have no idea how to deal with it.</p>