Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Clear Session Error 500

70 views
Skip to first unread message

Jeffrey Röling

unread,
Jan 5, 2024, 10:02:34 AM1/5/24
to Fat-Free Framework
So got an login form that works all well, but when loggin out of the I use the command clear session and then I got (500 Internal Server Error - Undefined tray key "data")

Any idea how to solve this issue?

[iscout/tmp/viygrg3so9j.1yguffec7x5w8.php:76] [iscout/tmp/viygrg3so9j.1yguffec7x5w8.php:76] Base->{closure}() [iscout/vendor/f3/base.php:2955] require('/customers/6/e/4/roling.nu/httpd.www/iscout/tmp/viygrg3so9j.1yguffec7x5w8.php') [iscout/vendor/f3/base.php:3200] View->sandbox() [iscout/app/controller/pages/home.php:55] Preview->render() [iscout/vendor/f3/base.php:1997] Controller\Pages\Home->index() [iscout/vendor/f3/base.php:1796] Base->call() [iscout/index.php:59] Base->run()

500

Internal Server Error

Undefined array key "data" 

Jeffrey Röling

unread,
Jan 5, 2024, 10:04:06 AM1/5/24
to Fat-Free Framework
Only thing I was able to solve is clearing browser history

ved

unread,
Jan 5, 2024, 6:08:55 PM1/5/24
to Fat-Free Framework
Hi,

You'll need to post some code to get any decent feedback.

Most likely you're trying to access some session key without checking if it's null/exists or something like that.

Cheers

v.

unread,
Jan 6, 2024, 10:56:18 AM1/6/24
to Fat-Free Framework
On selecting the text of your message new information seems to appear (font seems to be white?!):
500

Internal Server Error
Undefined array key "data"

That should give you the clue

Jeffrey

unread,
Jan 6, 2024, 4:09:48 PM1/6/24
to v. via Fat-Free Framework
Ved, 

Is there an way to check if it exists or is NULL. I know something like isset() if I’m right. I sure checked the key data but when logout that session.data array is cleared.

I’ll try to post some sourcecode on Monday when I’m back at my laptop.

Met vriendelijke groet,

Jeffrey Röling

On 6 Jan 2024, at 16:56, v. via Fat-Free Framework <f3-fra...@googlegroups.com> wrote:


--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Fat-Free Framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/f3-framework/OeCxOHW81Io/unsubscribe.
To unsubscribe from this group and all its topics, send an email to f3-framework...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/34395bf2-fdf4-4de0-8ae8-ef80e874094dn%40googlegroups.com.

ved

unread,
Jan 7, 2024, 8:04:57 AM1/7/24
to Fat-Free Framework
Hi,

Yes, you should check if the session is set and that key exists.

You can use PHP's isset() or F3's exists() method.

Cheers

Jeffrey Röling

unread,
Jan 15, 2024, 1:35:04 PM1/15/24
to Fat-Free Framework
Indeed, putting a isset on the correct position this issue is solved.
Reply all
Reply to author
Forward
0 new messages