What the hell does that even mean? I write PHP for a living and this makes no sense to me.
Do they mean retrieve the ID via session_id() and pass it onto a page, like in a GET parameter?
What the hell does that even mean? I write PHP for a living and this makes no sense to me.
Do they mean retrieve the ID via session_id() and pass it onto a page, like in a GET parameter?
But you're right. The question is confusing even for experienced PHP devs.
PHP Dev or not, that question is too vague to be answerable. You'd have to ask additional questions just to understand the question itself.
I remember someone angrily posting on HN about failing an HR phone screening because they tried arguing with the interviewer that Linux was not Unix, but was Unix-like (a sign that the interviewee clearly knew the one-word _expected_ answer that was on the interviewer's answer key). Just answer the very simple question and move on, instead of trying to show off or whatever. Part of functioning in the workplace means communicating effectively and professionally (by not being condescending, for example) with other people that may have different skill sets. The best engineers are very cognizant of this.