Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are flash messages stored?

I thought they were stored in cookies - but no, cookies inspecting gives me nothing. Sessions do not store them either. So, where I can find them?

I need this to set them directly (not through flash hash).

like image 364
fl00r Avatar asked Sep 07 '11 08:09

fl00r


People also ask

Where are rails flash messages stored?

They are stored in your session store. The default since rails 2.0 is the cookie store, but check in config/initializers/session_store. rb to check if you're using something other than the default.

Why do I get flash SMS messages?

Such messages are called flash SMS and they are usually sent by carriers. Unlike a regular SMS by your carrier that is intended to inform you about your data or plan, flash messages are distinct types of messages that are sent to grab your attention. And unfortunately, they don't go away until you close them.

How does a flash SMS work?

A flash SMS (also known as a class 0 SMS) will appear on a mobile, even if the screen is locked. As soon as the user presses 'Dismiss' the message disappears and is not stored in the SMS inbox. Flash SMS cannot be sent as a p2p text, from one person to another. They can only be sent via an SMS API service.

What are flash messages?

Flash SMS is a distinct kind of text message that appears instantly on the screen of a mobile device without requiring the user to take any action in order to read it. Even if the screen is locked, a flash SMS, also referred to as a class 0 SMS, will display on the smartphone.


2 Answers

They are stored in your session store. The default since rails 2.0 is the cookie store, but check in config/initializers/session_store.rb to check if you're using something other than the default.

like image 188
Benoit Garret Avatar answered Oct 06 '22 21:10

Benoit Garret


According to APIdock : ActionController/Flash, it is stored in a session.

Note that if sessions are disabled only flash.now will work.

When using flash.now, your values are not available in the next request.

like image 36
pdu Avatar answered Oct 06 '22 22:10

pdu