Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Who is online -- guest?


Guest

Recommended Posts

I'm online in my cart, and I'm logged in, yet in another browser window, in my admin panel, I'm just a 'guest'.

 

Is there something broken somewhere so it's not identifying me? I'm also logged in there twice, yet I clearly closed that window 20 minutes ago.

Link to comment
Share on other sites

  • Replies 100
  • Created
  • Last Reply

And, where is it reading the /whois from -- because this is the 2nd time tonight I've seen someone in my cart, yet /cart is not enabled for anyone at all, you can't get to anything by typing /cart in my site ...... so I'm thinking it's picking up people who are just in the site

Link to comment
Share on other sites

How long until it logs you out if you don't log out manually? (It showed me logged in 3 times last night -- as a guest -- for 20+ minutes).

Link to comment
Share on other sites

Well, I'm logged in under my login and show as a 'guest' and I am there as a guest on another machine, but in the site, not /cart, and it won't show ...

Link to comment
Share on other sites

Without logging out a session lasts 20 minutes.

 

The reason your status is not updating is because the system has your ip address already entered but it is as a guest. You need to access your site with a different ip address in order to see a change.

 

Does that help?

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Jim, I'm not so sure about that. If I log in, and then look in whos online, I see myself as logged in.

 

Pat, do you have the "auto login" mod installed? This mod has occasionally caused some strange problems like this in the past.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

Without logging out a session lasts 20 minutes.

 

The reason your status is not updating is because the system has your ip address already entered but it is as a guest. You need to access your site with a different ip address in order to see a change.

 

Does that help?

 

Yes and no. I logged in from another machine and was a 'guest' clearly, then I logged in under my username on that machine and was still a guest.

 

I'll try from my laptop later on today as that's just a dialup machine and not a static IP

 

Thanks :)

Link to comment
Share on other sites

Jim, I'm not so sure about that. If I log in, and then look in whos online, I see myself as logged in.

 

Pat, do you have the "auto login" mod installed? This mod has occasionally caused some strange problems like this in the past.

 

It's Pam, but no, I've only had 2 modifications added so far; one doesn't work, the other does, but both are regarding payment/shipping.

Link to comment
Share on other sites

Sorry about the name.

 

Just to make absolutly sure, after you are logged in, are you able to navigate to the payment method page?

 

I ask because sometimes OSC will recognize you and call you by your first name, but you are not actually logged in. I just wanted to rule that out as a possibility of what is happening.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

Let's test it :)

 

I'm about to click "confirm order"

 

In another browser window, I have the admin panel open

 

00:01:04 0 Guest 24.XX.XX.XX 08:59:52 09:00:40 /cart/checkout_confirmation.php

 

(that's me!)

 

"Your Order Has Been Processed!

 

Your order has been successfully processed!"

 

00:02:06 0 Guest 24.XX.XX.XXX 08:59:52 09:01:45 /cart/checkout_success.php

 

(that's me, again)

Link to comment
Share on other sites

Yep, that's definatly a problem.

 

To trouble shoot this problem, we should start by taking a look at what the 'whos_online" table in the database, and seeing if what is in there is actually what you are seeing on your screen. I assume you have phpmyadmin instaeed or available through your webhost?

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

OK, so try it again, log in and proceed to checkout, but this time instead of looking in the admin >> whos online section, lets "browse" the whos_online table in the DB. or you can execute "select * from whos_online" in the SQL query window.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

This would be a lot easier if people could choose their new password each time. EVERY time I go to place a test order I have to have a password sent to me and I fear this may turn customers off if they lose it.

 

Anyway --

 

I am not familiar with phpmyadmin at all, so far all I've learned how to do is a db dump (I've only been using it for a few days).

 

If I ran this right, it gives a few session IDs, my IP, "guest" and says the last page URL is "/cart/checkout_confirmation.php.

 

I'm afraid to click around in this since I am REALLY clueless

Link to comment
Share on other sites

Ok, lets address one thing at a time here.

 

This would be a lot easier if people could choose their new password each time. EVERY time I go to place a test order I have to have a password sent to me and I fear this may turn customers off if they lose it.

 

I do not intend for you to have to "create an account". Simply logging in would be sufficient, and for this you do not have to be sent a password each time. Also, I think you must have a newer shop, and you have your configured somewhere in the admin>>configuration to force customers to get an email with their password. In my shop, they do just have to choose a password, and I'm certain that your shop offers this functionality as well. It should be in admin>>configuration, but I'm not certain where.

 

 

If I ran this right, it gives a few session IDs, my IP, "guest" and says the last page URL is "/cart/checkout_confirmation.php.

 

It appears that you have run this correctly. It should provide you with nearly the exact same thing as you see in the "Who's online" funtion from admin. If you don't see your name that you created the account with, and you are certain you are logged in, then it is not recognizing you as logged in. go ahead and verify this.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

Well, I forget the password each time, so have to have email sent with it. I need to delete myself as a customer, reregister and use a password I can remember :)

 

I use m1 if that helps.

 

And yes, I am logged in, placed that order, it still says "welcome back Pam" but shows me as a guest when I do a query in the php thingie

 

Ok, lets address one thing at a time here.

 

This would be a lot easier if people could choose their new password each time. EVERY time I go to place a test order I have to have a password sent to me and I fear this may turn customers off if they lose it.

 

I do not intend for you to have to "create an account". Simply logging in would be sufficient, and for this you do not have to be sent a password each time. Also, I think you must have a newer shop, and you have your configured somewhere in the admin>>configuration to force customers to get an email with their password. In my shop, they do just have to choose a password, and I'm certain that your shop offers this functionality as well. It should be in admin>>configuration, but I'm not certain where.

 

 

If I ran this right, it gives a few session IDs, my IP, "guest" and says the last page URL is "/cart/checkout_confirmation.php.

 

It appears that you have run this correctly. It should provide you with nearly the exact same thing as you see in the "Who's online" funtion from admin. If you don't see your name that you created the account with, and you are certain you are logged in, then it is not recognizing you as logged in. go ahead and verify this.

Link to comment
Share on other sites

Just for verification purposes, can I try creating an account and loggin on?

 

The URL in your profile doesn't seem to be working.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

lol, and 1/2 again.

 

But if it pornographic, I can't do it now, because my cubicle doesn't afford me much privacy. I live in dilbert land.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

Pornographic meaning showing sex? Nope. Just video box covers and on the main page there is nothing obscene showing (obscene as in body parts).

 

Let me know when it's Kosher for you to view it and I'll PM you the URL as long as you promise not to laugh if you find something broken on the site

 

:)

Link to comment
Share on other sites

Hmmn, I'm a little concerned about trying it here at work. You can PM it to me, but I cna't check it until this evening (EST)

 

Big Brother and all that, you know.

 

Anyways, the next step in troubleshooting this is to look at what is populating that whos_online table. I'm pretty sure that the insertion happens in application top. Open your /catalog/includes/application_top.php, and search for 'whos_online' to find the variable that we are assigning that table name to. It'll be something like WHOS_ONLINE_TABLE.Then search again for another instance of that variable in that smae script. We are looking for an embedded SQL script where it says something like "INSERT INTO" . WHOS_ONLINE_TABLE . "customers_info(ip_address). blah blah blah.

 

See if you can find that query, and post it here.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

OK, a little misleading there. There is actually a step I'm missing.

 

Near the bottom of the application_top script, you fild the following

 

 

"// include the who's online functions

require(DIR_WS_FUNCTIONS . 'whos_online.php');

tep_update_whos_online();

 

This is actually calling another program that will insert that whos online data. So we'll need to open the whos_online.php file and looks for the SQL query in there.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

define('TABLE_WHOS_ONLINE', 'whos_online');

 

 

 

// include the who's online functions

require(DIR_WS_FUNCTIONS . 'whos_online.php');

tep_update_whos_online();

Link to comment
Share on other sites

OK, a little misleading there. There is actually a step I'm missing.

 

This is actually calling another program that will insert that whos online data. So we'll need to open the whos_online.php file and looks for the SQL query in there.

 

Saw that after I posted.

 

I have no whos_online.php under /includes

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...