473,409 Members | 1,985 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

question in the same variable session

oranoos3000
107 100+
hi
I has write a script with php for login member
that after arrival member to site a variable session with name username
($_session['username'] )
is created and the other page in site is used that value is username for each user and username is unique for each user
my question is this
if several member login at one time this variable session with one name
for all users that login ,now how is this variable session with name username on the
server?is this variable unique or identify for each user?
thanks alot
Feb 8 '09 #1
4 1118
stepterr
157 100+
@oranoos3000
A session is exactly how it sounds, it keeps track of each users session on your site and is valid for that browser session. If userA logs in then for them $_session['username'] = userA . If userB logs in, $_session['username'] = userB for them. If you want to test this try logging in using Firefox with one username and then log in using a different browser under another username and you'll see how it will work.
Feb 9 '09 #2
Markus
6,050 Expert 4TB
Just a note: $_SESSION needs to be written uppercase.
Feb 9 '09 #3
oranoos3000
107 100+
hi
meaning of your answer this is?
variable session with the same name for server is unique ?
does the server identify different user with this variable session with the same name?
thanks very much for all your trouble
Feb 10 '09 #4
Markus
6,050 Expert 4TB
Each session is unique to the person browsing the website.
Feb 10 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Xizor | last post by:
Let's say I run a server. I have two people using the server. Bill and Joe. Bill is at address.com/bill and Joe is at address.com/joe. Let's say Joe and Bill are both using PHP with sessions on...
8
by: Karen | last post by:
Hi there.... i got a quick one for you guys. i've this session variable that is updated by calling a server method (i set this value when the user hits a submit button in my form. The server...
4
by: VB Programmer | last post by:
If I have a variable I want to share in my application what is the difference between just declaring a variable (Dim strMyVar as String) and using a session variable (Session("strMyVar"))? When...
14
by: Coleen | last post by:
Hi All :-) We have an APSX application using VB.net as the code behind, which uses one or two session variables per page. These Session variables are passed to the final page and calculations...
6
by: tshad | last post by:
I am playing with Inheritance and want to make sure I understand it. I have the following Classes: ******************************************* Public Class AuthHeader:Inherits SoapHeader Public...
1
by: CK | last post by:
We recently upgraded a 1.1 app to 2.0. We are experiencing a strange bug that happens randomly. When a user is authenticated a string variable is added to the session. During debugging I put a...
2
by: DLN | last post by:
Hello all, I apologize for the naivety of this question, but I'm wondering whether session variables can ever be modified (somehow) by a client without having to go through code that I write. ...
2
by: =?Utf-8?B?RGlmZmlkZW50?= | last post by:
Hello All, I have a method is which I am accessing a session variable several times and every time I retrieve it from session using Session.ToString(). Is it advisable to retrieve this session...
5
by: jehugaleahsa | last post by:
Hello: What is the point of using a DataTable in ASP .NET? We are unsure how you can use them without 1) rebuilding them every postback, or 2) taking up precious memory. We are not sure how to...
4
by: agun | last post by:
Hi guys, Sorry for asking something that maybe already obvious to you all. But since i'm newbie, i just need further explanation. (I've read the PHP Sessions thread written by Atli) In my head,...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.