freshJet Posted June 29, 2013 Report Share Posted June 29, 2013 Having some issues with logging in externally (as in outwith my main site). Happening on both my Portal (www.freshjetvirtual.com/portal) and mobile site (m.freshjetvirtual.com). Both login forms have blank actions and so submit to themselves and I handle the login on the same page. It uses the Auth::ProcessLogin() function and seems to happily log the user in, however the user is then redirected using javascript, using the portal as an example, to the home page, otherwise the incorrect password error is displayed. However, once redirected, the user is logged out again and hence redirected back to the login page. The issue here is that it works fine on desktop computers, but not mobile devices. This is not a case of having javascript disabled as the page redirects work fine. 1 Quote Link to comment Share on other sites More sharing options...
freshJet Posted June 29, 2013 Author Report Share Posted June 29, 2013 Just tested on a Lenovo Android tablet - no issues. The mobile device I am using is a Sony Xperia S. Quote Link to comment Share on other sites More sharing options...
freshJet Posted June 30, 2013 Author Report Share Posted June 30, 2013 Seems to work fine with Chrome for Android, seems to be the Android Browser causing the issues. Anyone know a fix? Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted June 30, 2013 Members Report Share Posted June 30, 2013 As it looks like a javascript problem cant you do the redirect via php ? <?php header( 'Location: http://www.yoursite.com/new_page.html' ) ; ?> Quote Link to comment Share on other sites More sharing options...
freshJet Posted June 30, 2013 Author Report Share Posted June 30, 2013 Nope, as I need to include the codon.config.php. It's not a javascript error like I said, it seems to be a browser compatibility issue. Quote Link to comment Share on other sites More sharing options...
Tom Posted June 30, 2013 Report Share Posted June 30, 2013 Nope, as I need to include the codon.config.php. It's not a javascript error like I said, it seems to be a browser compatibility issue. That doesn't stop you doing a php redirect? Quote Link to comment Share on other sites More sharing options...
freshJet Posted June 30, 2013 Author Report Share Posted June 30, 2013 Produces the headers already sent error Quote Link to comment Share on other sites More sharing options...
Tom Posted July 1, 2013 Report Share Posted July 1, 2013 Produces the headers already sent error You have whitespace or ?> at the end of your files? Should remove that. Quote Link to comment Share on other sites More sharing options...
freshJet Posted July 1, 2013 Author Report Share Posted July 1, 2013 Nope, the ones with redirects end with chunks of HTML. Quote Link to comment Share on other sites More sharing options...
Tom Posted July 1, 2013 Report Share Posted July 1, 2013 No, in the files it includes before your code runs - local.config.php for example. Quote Link to comment Share on other sites More sharing options...
freshJet Posted July 1, 2013 Author Report Share Posted July 1, 2013 It's the codon.config, and no. Quote Link to comment Share on other sites More sharing options...
freshJet Posted July 1, 2013 Author Report Share Posted July 1, 2013 Just have to stick to Chrome on Android devices. Quote Link to comment Share on other sites More sharing options...
Tom Posted July 1, 2013 Report Share Posted July 1, 2013 It's the codon.config, and no. codon.config.php includes other files Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.