Ok had a look at the code and did some testing with the login and I discovered this is the code where it's redirecting the user to the homepage after signing SUCCESSFULLY.
if (sizeof($_SESSION['navigation']->snapshot) > 0) {
//redirect to checkout shipping
} else {
//code redirects user to homepage
}
Why should snapshot be empty sometimes and other times not empty? The Session information is definetly not empty except for that property.
Here's the complete session information when it sent me back to the hompage upon SUCCESSFUL login
Array
(
[customers_host_address] => syd-nxg-pr8.tpgi.com.au
[cartID] =>
[cart] => shoppingcart Object
(
[contents] => Array
(
[13] => Array
(
[qty] => 1
)
[2] => Array
(
[qty] => 1
)
[37] => Array
(
[qty] => 1
)
)
[total] => 0
[weight] => 0
[content_type] =>
[free_shipping_item] => 0
[free_shipping_weight] => 0
[free_shipping_price] => 0
)
[language] => english
[languages_id] => 1
[currency] => AUD
[check_valid] => true
[navigation] => navigationhistory Object
(
[path] => Array
(
[0] => Array
(
[page] => index
[mode] => NONSSL
[get] =>
[post] => Array
(
)
)
[1] => Array
(
[page] => index
[mode] => NONSSL
[get] =>
[post] => Array
(
)
)
[2] => Array
(
[page] => index
[mode] => NONSSL
[get] => Array
(
[randomNum] => 2535812828
[action] => viewed_homepage
[timeStamp] => 1150597523.812
)
[post] => Array
(
)
)
[3] => Array
(
[page] => product_info
[mode] => NONSSL
[get] => Array
(
[products_id] => 2
[action] => add_product
)
[post] => Array
(
[cart_quantity] => 1
[products_id] => 2
)
)
[4] => Array
(
[page] => shopping_cart
[mode] => NONSSL
[get] =>
[post] => Array
(
)
)
[5] => Array
(
[page] => index
[mode] => NONSSL
[get] =>
[post] => Array
(
)
)
[6] => Array
(
[page] => index
[mode] => NONSSL
[get] =>
[post] => Array
(
)
)
[7] => Array
(
[page] => login
[mode] => NONSSL
[get] => Array
(
[action] => process
)
[post] => Array
(
[email_address] => [email protected]
[password] => minemine
)
)
)
[snapshot] => Array
(
)
)
[update_expirations] => true
[HTTP_REFERER] =>
[trackHomePageView] => 1
[dataTrackSessionId] => 1019
[new_products_id_in_cart] =>
[valid_to_checkout] => 1
[cart_errors] =>
[customer_id] => 1
[customer_default_address_id] => 1
[customers_authorization] => 0
[customer_first_name] => andrew
[customer_country_id] => 13
[customer_zone_id] => 0
)