Flash Messages When Switching Between Http And Https

I think I’ve worked out that by setting a flash message on a HTTP page that is then redirected at a controller level through to a HTTPS is stopping my flash messages being displayed?

How would I overcome this? I thought that securing the session in the config file would stop this problem, but it doesn’t seem to have done.



What’s the exact scenario?

I’m on a http page, submit a form, and the controller deals with the form and redirects back to a user’s profile page that is displayed through https

I also have a similar issue with a controller/action. I have an action that switches the language on my site.

if(Yii::app()->language == 'en_us'){


			Yii::app()->session->add('language', 'fr');

			Yii::app()->language == Yii::app()->session['language'];




This works fine on HTTP. But if I am on a HTTPS page, I don’t get redirected, I just get taken example/site/changeLanguage

I’m guessing that this is due to HTTPS being involved, but I can’t figure how it impacts it. So any help would be great.