Welcome Guest, Not a member yet? Register   Sign In
Blank screen after login
#1

[eluser]nk94555[/eluser]
Hi,

Blank screen issue has been discussed in other thread also but mine is little different issue. Some of my users get blank screen only on IE7 browser and after they login. Login page is secure page, after successful login they are redirected to their profile page, which is a non-secure page. Occasionally they get blank screen here with nothing on view source and there is no error. Before login, if they browse through the site, no issue with blank screen. I never saw this issue in Firefox. Any input on how to solve this will be highly appreciated.

Thanks
NK.
#2

[eluser]thePiet[/eluser]
What is the value of your error_reporting configuration? How is the user redirected?
#3

[eluser]nk94555[/eluser]
After login I use:
redirect("/myprofile");
--------
On myprofile controller I have

if($this->session->userdata('uid'))
{
$data = array();
---
---

$this->load->view('myprofile',$data);
}

Probably session is not set then it is not loading the view and showing blank page, as there is no else condition for alternate view.

Have someone experienced similar issue with sessions in IE browser and not in Firefox.

Thanks
NK
#4

[eluser]nk94555[/eluser]
Following are my config settings for session handling:

$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;

/*
|--------------------------------------------------------------------------
| Cookie Related Variables
|--------------------------------------------------------------------------
|
| 'cookie_prefix' = Set a prefix if you need to avoid collisions
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
| 'cookie_path' = Typically will be a forward slash
|
*/
$config['cookie_prefix'] = "";
$config['cookie_domain'] = "";
$config['cookie_path'] = "/";

/*
|--------------------------------------------------------------------------
| Global XSS Filtering
|--------------------------------------------------------------------------
|
| Determines whether the XSS filter is always active when GET, POST or
| COOKIE data is encountered
|
*/
$config['global_xss_filtering'] = FALSE;
#5

[eluser]flaky[/eluser]
this means only one thing, the session isn't being set
try this just to check
Code:
if($this->session->userdata('uid'))
{
  $data = array();
—-
—-

  $this->load->view('myprofile',$data);
}
else
echo "session not set";
#6

[eluser]n0xie[/eluser]
Code:
$config[‘sess_cookie_name’]  = ‘ci_session’;

Remove the underscore from the cookie name. See if the problem goes away.




Theme © iAndrew 2016 - Forum software by © MyBB