Skip to content

bug: cookbook session-storage docs outdated #6108

@lpmrfentazis

Description

@lpmrfentazis

Duplicate Check

Describe the bug

https://docs.flet.dev/cookbook/session-storage/
This page is outdated and contains incorrect information.

Code sample

Code
# strings
page.session.set("key", "value")

# numbers, booleans
page.session.set("number.setting", 12345)
page.session.set("bool_setting", True)

# lists
page.session.set("favorite_colors", ["red", "green", "blue"])

Should be replaced with:

# strings
page.session.store.set("key", "value")

# numbers, booleans
page.session.store.set("number.setting", 12345)
page.session.store.set("bool_setting", True)

# lists
page.session.store.set("favorite_colors", ["red", "green", "blue"])

And the same applies to the other examples.

To reproduce

...

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

windows

Flet version

0.80.5

Regression

Yes, it used to work in a previous Flet version (please specify the version in additional details)

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions